ASoC: max98095: Add an explicit of_match_table
Create an explicit of_match_table entry for MAX98095 codec. Also add a binding Documentation for this compatible string. Signed-off-by: Tushar Behera <tushar.behera@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
Dieser Commit ist enthalten in:

committet von
Mark Brown

Ursprung
c9eaa447e7
Commit
c4839c87f5
@@ -2399,10 +2399,17 @@ static const struct i2c_device_id max98095_i2c_id[] = {
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, max98095_i2c_id);
|
||||
|
||||
static const struct of_device_id max98095_of_match[] = {
|
||||
{ .compatible = "maxim,max98095", },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, max98095_of_match);
|
||||
|
||||
static struct i2c_driver max98095_i2c_driver = {
|
||||
.driver = {
|
||||
.name = "max98095",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = of_match_ptr(max98095_of_match),
|
||||
},
|
||||
.probe = max98095_i2c_probe,
|
||||
.remove = max98095_i2c_remove,
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren