summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/adau1761-spi.c
diff options
context:
space:
mode:
authorAndreas Irestål <andreas.irestal@axis.com>2016-02-16 13:56:44 +0100
committerMark Brown <broonie@kernel.org>2016-02-24 05:14:05 +0100
commitaaf0f3aeeb6f9e5e874fccc8a0e56b00fea537c3 (patch)
tree236efb767760e41ed3edd343f9ee11809abe4a73 /sound/soc/codecs/adau1761-spi.c
parentASoC: adau17x1: Add adau17x1 bindings document (diff)
downloadlinux-aaf0f3aeeb6f9e5e874fccc8a0e56b00fea537c3.tar.xz
linux-aaf0f3aeeb6f9e5e874fccc8a0e56b00fea537c3.zip
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/adau1761-spi.c')
-rw-r--r--sound/soc/codecs/adau1761-spi.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sound/soc/codecs/adau1761-spi.c b/sound/soc/codecs/adau1761-spi.c
index 188334928c23..d9171245bd9f 100644
--- a/sound/soc/codecs/adau1761-spi.c
+++ b/sound/soc/codecs/adau1761-spi.c
@@ -61,9 +61,21 @@ static const struct spi_device_id adau1761_spi_id[] = {
};
MODULE_DEVICE_TABLE(spi, adau1761_spi_id);
+#if defined(CONFIG_OF)
+static const struct of_device_id adau1761_spi_dt_ids[] = {
+ { .compatible = "adi,adau1361", },
+ { .compatible = "adi,adau1461", },
+ { .compatible = "adi,adau1761", },
+ { .compatible = "adi,adau1961", },
+ { },
+};
+MODULE_DEVICE_TABLE(of, adau1761_spi_dt_ids);
+#endif
+
static struct spi_driver adau1761_spi_driver = {
.driver = {
.name = "adau1761",
+ .of_match_table = of_match_ptr(adau1761_spi_dt_ids),
},
.probe = adau1761_spi_probe,
.remove = adau1761_spi_remove,