Linux IIO development
 help / color / mirror / Atom feed
* [PATCH] iio: adc: ad7768-1: Select GPIOLIB
@ 2026-01-11 16:55 Jonathan Cameron
  2026-01-12  7:23 ` Andy Shevchenko
  2026-01-12 14:41 ` David Lechner
  0 siblings, 2 replies; 3+ messages in thread
From: Jonathan Cameron @ 2026-01-11 16:55 UTC (permalink / raw)
  To: linux-iio, Jonathan Santos
  Cc: David Lechner, Nuno Sá, Andy Shevchenko, Jonathan Cameron,
	kernel test robot

From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

This driver provides a gpio chip a some related functions are not
stubbed if GPIOLIB is not built.

   hppa-linux-ld: drivers/iio/adc/ad7768-1.o: in function `ad7768_gpio_get':
>> drivers/iio/adc/ad7768-1.c:420: undefined reference to `gpiochip_get_data'
   hppa-linux-ld: drivers/iio/adc/ad7768-1.o: in function `ad7768_gpio_set':
   drivers/iio/adc/ad7768-1.c:453: undefined reference to `gpiochip_get_data'
   hppa-linux-ld: drivers/iio/adc/ad7768-1.o: in function `ad7768_gpio_init':
>> drivers/iio/adc/ad7768-1.c:498: undefined reference to `devm_gpiochip_add_data_with_key'
   hppa-linux-ld: drivers/iio/adc/ad7768-1.o: in function `ad7768_gpio_direction_input':
   drivers/iio/adc/ad7768-1.c:387: undefined reference to `gpiochip_get_data'
   hppa-linux-ld: drivers/iio/adc/ad7768-1.o: in function `ad7768_gpio_direction_output':
   drivers/iio/adc/ad7768-1.c:404: undefined reference to `gpiochip_get_data'

Fixes: ("d569ae0f052e iio: adc: ad7768-1: Add GPIO controller support")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202512271235.WwAmAbOa-lkp@intel.com/
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
---
 drivers/iio/adc/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig
index b4295aa415bf..e37569f65524 100644
--- a/drivers/iio/adc/Kconfig
+++ b/drivers/iio/adc/Kconfig
@@ -409,6 +409,7 @@ config AD7766
 config AD7768_1
 	tristate "Analog Devices AD7768-1 ADC driver"
 	depends on SPI
+	select GPIOLIB
 	select REGULATOR
 	select REGMAP_SPI
 	select IIO_BUFFER
-- 
2.52.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-01-12 14:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-11 16:55 [PATCH] iio: adc: ad7768-1: Select GPIOLIB Jonathan Cameron
2026-01-12  7:23 ` Andy Shevchenko
2026-01-12 14:41 ` David Lechner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox