iio: ad7606: Kconfig: add HAS_IOPORT dependencies
authorNiklas Schnelle <schnelle@linux.ibm.com>
Tue, 16 May 2023 11:00:08 +0000 (13:00 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 20 May 2023 16:30:45 +0000 (17:30 +0100)
In a future patch HAS_IOPORT=n will result in inb()/outb() and friends
not being declared. We thus need to add HAS_IOPORT as dependency for
those drivers using them.

Co-developed-by: Arnd Bergmann <arnd@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@kernel.org>
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Link: https://lore.kernel.org/r/20230516110038.2413224-13-schnelle@linux.ibm.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/Kconfig

index eb2b09e..53098ac 100644 (file)
@@ -145,7 +145,7 @@ config AD7606
 
 config AD7606_IFACE_PARALLEL
        tristate "Analog Devices AD7606 ADC driver with parallel interface support"
-       depends on HAS_IOMEM
+       depends on HAS_IOPORT
        select AD7606
        help
          Say yes here to build parallel interface support for Analog Devices: