]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
ASoC: adau17x1: Add basic DT support for adau17x1
authorAndreas Irestål <andreas.irestal@axis.com>
Tue, 16 Feb 2016 12:56:44 +0000 (13:56 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 24 Feb 2016 04:14:05 +0000 (13:14 +0900)
Signed-off-by: Andreas Irestål <andire@axis.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/adau1761-i2c.c
sound/soc/codecs/adau1761-spi.c
sound/soc/codecs/adau1781-i2c.c
sound/soc/codecs/adau1781-spi.c

index a1b12671c3079e31980e488ca763148e25fa3a5d..8de010f758cd8d5007cf661a590f6e7c473da385 100644 (file)
@@ -44,9 +44,21 @@ static const struct i2c_device_id adau1761_i2c_ids[] = {
 };
 MODULE_DEVICE_TABLE(i2c, adau1761_i2c_ids);
 
+#if defined(CONFIG_OF)
+static const struct of_device_id adau1761_i2c_dt_ids[] = {
+       { .compatible = "adi,adau1361", },
+       { .compatible = "adi,adau1461", },
+       { .compatible = "adi,adau1761", },
+       { .compatible = "adi,adau1961", },
+       { },
+};
+MODULE_DEVICE_TABLE(of, adau1761_i2c_dt_ids);
+#endif
+
 static struct i2c_driver adau1761_i2c_driver = {
        .driver = {
                .name = "adau1761",
+               .of_match_table = of_match_ptr(adau1761_i2c_dt_ids),
        },
        .probe = adau1761_i2c_probe,
        .remove = adau1761_i2c_remove,
index 188334928c2388c7300b34b896b11ef305438722..d9171245bd9f11a177ce2429c0cbf50ef159af9d 100644 (file)
@@ -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,
index 0e32bba92339b17182980c426818c0b58d2c21a7..06cbca84cf02150ab0a83bbf114955ffe6ea62d1 100644 (file)
@@ -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,
index 33a73ff78de4d2a980146c78b6374f67c0cabb80..3d965a01b99cee318da30a080baebc8a060852cc 100644 (file)
@@ -59,9 +59,19 @@ static const struct spi_device_id adau1781_spi_id[] = {
 };
 MODULE_DEVICE_TABLE(spi, adau1781_spi_id);
 
+#if defined(CONFIG_OF)
+static const struct of_device_id adau1781_spi_dt_ids[] = {
+       { .compatible = "adi,adau1381", },
+       { .compatible = "adi,adau1781", },
+       { },
+};
+MODULE_DEVICE_TABLE(of, adau1781_spi_dt_ids);
+#endif
+
 static struct spi_driver adau1781_spi_driver = {
        .driver = {
                .name = "adau1781",
+               .of_match_table = of_match_ptr(adau1781_spi_dt_ids),
        },
        .probe = adau1781_spi_probe,
        .remove = adau1781_spi_remove,