iio: adc: lpc18xx_adc: Switch from of headers to mod_devicetable.h
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 31 May 2022 21:22:18 +0000 (00:22 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 14 Jun 2022 10:53:08 +0000 (11:53 +0100)
There is nothing directly using of specific interfaces in this driver,
so lets not include the headers.

While at it, drop dependency to OF, which currently makes no sense.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220531212218.72189-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/Kconfig
drivers/iio/adc/lpc18xx_adc.c

index 3b6a807..0050087 100644 (file)
@@ -562,7 +562,7 @@ config LP8788_ADC
 config LPC18XX_ADC
        tristate "NXP LPC18xx ADC driver"
        depends on ARCH_LPC18XX || COMPILE_TEST
-       depends on OF && HAS_IOMEM
+       depends on HAS_IOMEM
        help
          Say yes here to build support for NXP LPC18XX ADC.
 
index ae9c938..42e6cd6 100644 (file)
 #include <linux/iio/driver.h>
 #include <linux/io.h>
 #include <linux/iopoll.h>
+#include <linux/mod_devicetable.h>
 #include <linux/module.h>
 #include <linux/mutex.h>
-#include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/platform_device.h>
 #include <linux/regulator/consumer.h>