Commit 85aa0fe7 authored by Andreas Färber's avatar Andreas Färber Committed by Mark Brown

ASoC: max98088: add OF support

MAX98088 is an older version of the MAX98089 device.
Signed-off-by: default avatarAndreas Färber <afaerber@suse.de>
[m.felsch@pengutronix.de: add CONFIG_OF compile switch]
[m.felsch@pengutronix.de: adapt commit message]
Signed-off-by: default avatarMarco Felsch <m.felsch@pengutronix.de>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 02a9fad8
...@@ -1742,9 +1742,19 @@ static const struct i2c_device_id max98088_i2c_id[] = { ...@@ -1742,9 +1742,19 @@ static const struct i2c_device_id max98088_i2c_id[] = {
}; };
MODULE_DEVICE_TABLE(i2c, max98088_i2c_id); MODULE_DEVICE_TABLE(i2c, max98088_i2c_id);
#if defined(CONFIG_OF)
static const struct of_device_id max98088_of_match[] = {
{ .compatible = "maxim,max98088" },
{ .compatible = "maxim,max98089" },
{ }
};
MODULE_DEVICE_TABLE(of, max98088_of_match);
#endif
static struct i2c_driver max98088_i2c_driver = { static struct i2c_driver max98088_i2c_driver = {
.driver = { .driver = {
.name = "max98088", .name = "max98088",
.of_match_table = of_match_ptr(max98088_of_match),
}, },
.probe = max98088_i2c_probe, .probe = max98088_i2c_probe,
.id_table = max98088_i2c_id, .id_table = max98088_i2c_id,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment