summaryrefslogtreecommitdiffstats
path: root/drivers/iio/dac
diff options
context:
space:
mode:
authorDavid Lechner <dlechner@baylibre.com>2024-10-18 16:44:48 -0500
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-10-21 19:19:24 +0100
commit4b0cc9c0d689faa31b95ce0215069bb225735be7 (patch)
treea091c76c944d325e9a4bc9b15f4d9c483e2baa15 /drivers/iio/dac
parent7def41bf03288b0f5d363bc4f601d6233107a17a (diff)
downloadlinux-stable-4b0cc9c0d689faa31b95ce0215069bb225735be7.tar.gz
linux-stable-4b0cc9c0d689faa31b95ce0215069bb225735be7.tar.bz2
linux-stable-4b0cc9c0d689faa31b95ce0215069bb225735be7.zip
iio: dac: ad8460: add SPI device match table
Add SPI device match table for ADI AD8460 DAC. As described in [1], this is required for the module to automatically load, even when using DT. [1]: https://lore.kernel.org/all/20210921192149.50740-1-broonie@kernel.org/ Signed-off-by: David Lechner <dlechner@baylibre.com> Link: https://patch.msgid.link/20241018-iio-dac-ad8460-add-spi-match-table-v1-1-84a5f903bf50@baylibre.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/dac')
-rw-r--r--drivers/iio/dac/ad8460.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/iio/dac/ad8460.c b/drivers/iio/dac/ad8460.c
index 6706c8112094..7470d97825e0 100644
--- a/drivers/iio/dac/ad8460.c
+++ b/drivers/iio/dac/ad8460.c
@@ -929,12 +929,19 @@ static const struct of_device_id ad8460_of_match[] = {
};
MODULE_DEVICE_TABLE(of, ad8460_of_match);
+static const struct spi_device_id ad8460_spi_match[] = {
+ { .name = "ad8460" },
+ { }
+};
+MODULE_DEVICE_TABLE(spi, ad8460_spi_match);
+
static struct spi_driver ad8460_driver = {
.driver = {
.name = "ad8460",
.of_match_table = ad8460_of_match,
},
.probe = ad8460_probe,
+ .id_table = ad8460_spi_match,
};
module_spi_driver(ad8460_driver);