]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
iio: adc: ad7768-1: Select GPIOLIB
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 11 Jan 2026 16:55:28 +0000 (16:55 +0000)
committerJonathan Cameron <jic23@kernel.org>
Tue, 26 May 2026 18:22:41 +0000 (19:22 +0100)
This driver provides a gpio chip a some related functions are not
stubbed if GPIOLIB is not built.

ad7768-1.c:420: undefined reference to `gpiochip_get_data'
ad7768-1.c:498: undefined reference to `devm_gpiochip_add_data_with_key'

Dual sign off reflects change of affiliation whilst this was under review.

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>
Cc: Stable@vger.kernel.org
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/Kconfig

index 2dcb9980d7c8d2d66906e4ad8c3e78c6ad4b0826..827aba88e7a29192e39fa8485a4c978465671cd2 100644 (file)
@@ -415,6 +415,7 @@ config AD7766
 config AD7768_1
        tristate "Analog Devices AD7768-1 ADC driver"
        depends on SPI
+       select GPIOLIB
        select REGULATOR
        select REGMAP_SPI
        select RATIONAL