diff options
author | Andreas Irestål <andreas.irestal@axis.com> | 2016-02-16 15:56:44 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-02-24 07:14:05 +0300 |
commit | aaf0f3aeeb6f9e5e874fccc8a0e56b00fea537c3 (patch) | |
tree | 236efb767760e41ed3edd343f9ee11809abe4a73 /sound/soc/codecs/adau1781-i2c.c | |
parent | ef329457237d885baf3408a56db9a02df97cde87 (diff) | |
download | linux-aaf0f3aeeb6f9e5e874fccc8a0e56b00fea537c3.tar.xz |
ASoC: adau17x1: Add basic DT support for adau17x1
Signed-off-by: Andreas Irestål <andire@axis.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/adau1781-i2c.c')
-rw-r--r-- | sound/soc/codecs/adau1781-i2c.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sound/soc/codecs/adau1781-i2c.c b/sound/soc/codecs/adau1781-i2c.c index 0e32bba92339..06cbca84cf02 100644 --- a/sound/soc/codecs/adau1781-i2c.c +++ b/sound/soc/codecs/adau1781-i2c.c @@ -42,9 +42,19 @@ static const struct i2c_device_id adau1781_i2c_ids[] = { }; MODULE_DEVICE_TABLE(i2c, adau1781_i2c_ids); +#if defined(CONFIG_OF) +static const struct of_device_id adau1781_i2c_dt_ids[] = { + { .compatible = "adi,adau1381", }, + { .compatible = "adi,adau1781", }, + { }, +}; +MODULE_DEVICE_TABLE(of, adau1781_i2c_dt_ids); +#endif + static struct i2c_driver adau1781_i2c_driver = { .driver = { .name = "adau1781", + .of_match_table = of_match_ptr(adau1781_i2c_dt_ids), }, .probe = adau1781_i2c_probe, .remove = adau1781_i2c_remove, |