From: Andy Shevchenko Date: Mon, 12 Apr 2021 13:18:35 +0000 (+0300) Subject: iio: adc: ad7298: Enable on Intel Galileo Gen 1 X-Git-Tag: howlett/maple/20220722_2~2811^2~180^2~163 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=494186662ecf1c6e0c1d68b06b45434f298688d9;p=users%2Fjedix%2Flinux-maple.git iio: adc: ad7298: Enable on Intel Galileo Gen 1 Enable ADC on Intel Galileo Gen 1 board. Signed-off-by: Andy Shevchenko Link: https://lore.kernel.org/r/20210412131835.70212-1-andriy.shevchenko@linux.intel.com Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/adc/ad7298.c b/drivers/iio/adc/ad7298.c index d2163cb62f4f8..3f4e73f7d35a0 100644 --- a/drivers/iio/adc/ad7298.c +++ b/drivers/iio/adc/ad7298.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -346,6 +347,12 @@ static int ad7298_probe(struct spi_device *spi) return devm_iio_device_register(&spi->dev, indio_dev); } +static const struct acpi_device_id ad7298_acpi_ids[] = { + { "INT3494", 0 }, + { } +}; +MODULE_DEVICE_TABLE(acpi, ad7298_acpi_ids); + static const struct spi_device_id ad7298_id[] = { {"ad7298", 0}, {} @@ -355,6 +362,7 @@ MODULE_DEVICE_TABLE(spi, ad7298_id); static struct spi_driver ad7298_driver = { .driver = { .name = "ad7298", + .acpi_match_table = ad7298_acpi_ids, }, .probe = ad7298_probe, .id_table = ad7298_id,