Skip to contentSkip to conversation

iio: adc: ad4062: add GPIOLIB dependency

PATCH In review Arnd Bergmann 2 participants 2 messages May 15

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: adc: ad4062: add GPIOLIB dependency

From: Arnd Bergmann <[email protected]>

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")
---
 drivers/iio/adc/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/iio/adc/Kconfig +1 -0
index 8550917226a1..2c96e500c684 100644
@@ -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
Signature · 1 line
2.39.5
maintainer
#1 lore raw
Quoted 5 lines · On Fri, 15 May 2026 11:07:53 +0200 Arnd Bergmann <[email protected]> wrote:

From: Arnd Bergmann <[email protected]>

The ad4062 driver gained support for the gpiochip and now fails to build when GPIOLIB is disabled:

Quoted 7 lines

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")

Applied and marked for stable. thanks,

J

Quoted 16 lines
---
 drivers/iio/adc/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/iio/adc/Kconfig +1 -0
index 8550917226a1..2c96e500c684 100644
@@ -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