Skip to content

Commit 8a6eded

Browse files
M-Vaittinenjic23
authored andcommitted
iio: adc: bd79124: Add GPIOLIB dependency
The bd79124 has ADC inputs which can be muxed to be GPIOs. The driver supports this by registering a GPIO-chip for channels which aren't used as ADC. The Kconfig entry does not handle the dependency to GPIOLIB, which causes errors: ERROR: modpost: "devm_gpiochip_add_data_with_key" [drivers/iio/adc/rohm-bd79124.ko] undefined! ERROR: modpost: "gpiochip_get_data" [drivers/iio/adc/rohm-bd79124.ko] undefined! at linking phase if GPIOLIB is not configured to be used. Fix this by adding dependency to the GPIOLIB. Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Fixes: 3f57a3b ("iio: adc: Support ROHM BD79124 ADC") Signed-off-by: Matti Vaittinen <[email protected]> Reviewed-by: Bartosz Golaszewski <[email protected]> Link: https://patch.msgid.link/6837249bddf358924e67566293944506206d2d62.1755076369.git.mazziesaccount@gmail.com Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent dfdc31e commit 8a6eded

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/adc/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,7 @@ config RN5T618_ADC
13001300

13011301
config ROHM_BD79124
13021302
tristate "Rohm BD79124 ADC driver"
1303-
depends on I2C
1303+
depends on I2C && GPIOLIB
13041304
select REGMAP_I2C
13051305
select IIO_ADC_HELPER
13061306
help

0 commit comments

Comments
 (0)