]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
iio: adc: ad4062: add GPIOLIB dependency
authorArnd Bergmann <arnd@arndb.de>
Fri, 15 May 2026 09:07:53 +0000 (11:07 +0200)
committerJonathan Cameron <jic23@kernel.org>
Fri, 15 May 2026 13:21:54 +0000 (14:21 +0100)
The ad4062 driver gained support for the gpiochip and now fails
to build when GPIOLIB is disabled:

390-linux-ld: drivers/iio/adc/ad4062.o: in function `ad4062_gpio_get':
drivers/iio/adc/ad4062.c:1383:(.text+0x3dc): undefined reference to `gpiochip_get_data`

Add a Kconfig dependency for this.

Fixes: da1d3596b1e4 ("iio: adc: ad4062: Add GPIO Controller support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/Kconfig

index a9dedbb8eb461deb0cb849c8420c178382ec1d12..2dcb9980d7c8d2d66906e4ad8c3e78c6ad4b0826 100644 (file)
@@ -78,6 +78,7 @@ config AD4030
 config AD4062
        tristate "Analog Devices AD4062 Driver"
        depends on I3C
+       depends on GPIOLIB
        select REGMAP_I3C
        select IIO_BUFFER
        select IIO_TRIGGERED_BUFFER