iio:adc:ti-ads124s08: Drop dependency on OF.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 5 Dec 2021 17:01:39 +0000 (17:01 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 12 Dec 2021 17:13:14 +0000 (17:13 +0000)
Nothing in this driver depends on OF firmware so drop the dependency
and update the headers to remove the false impression such a dependency
exists.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
drivers/iio/adc/Kconfig
drivers/iio/adc/ti-ads124s08.c

index 8bf5b62a73f423ebf358e43719449673b7fa0866..9b0b99bc826c3e54e1f5f1bb02b2151e5f8d6bae 100644 (file)
@@ -1166,7 +1166,7 @@ config TI_ADS8688
 
 config TI_ADS124S08
        tristate "Texas Instruments ADS124S08"
-       depends on SPI && OF
+       depends on SPI
        help
          If you say yes here you get support for Texas Instruments ADS124S08
          and ADS124S06 ADC chips
index 17d0da5877a9a6c0a46e82c9285e3fe26b02d8e9..767b3b6348092f7ba849ca87b443c61b18ed1009 100644 (file)
@@ -8,8 +8,7 @@
 #include <linux/device.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/of.h>
-#include <linux/of_gpio.h>
+#include <linux/mod_devicetable.h>
 #include <linux/slab.h>
 #include <linux/sysfs.h>