linux/drivers/iio
Matti Vaittinen 8a6ededaad 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 <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202508131533.5sSkq80B-lkp@intel.com/
Fixes: 3f57a3b9ab ("iio: adc: Support ROHM BD79124 ADC")
Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Link: https://patch.msgid.link/6837249bddf358924e67566293944506206d2d62.1755076369.git.mazziesaccount@gmail.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
History 2025-08-16 13:25:35 +01:00
..
accel iio: accel: sca3300: fix uninitialized iio scan data 2025-08-11 21:35:01 +01:00
adc iio: adc: bd79124: Add GPIOLIB dependency 2025-08-16 13:25:35 +01:00
addac treewide: rename GPIO set callbacks back to their original names 2025-08-07 10:07:06 +02:00
afe iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
amplifiers iio: amplifiers: ad8366: make ad8366_info const 2025-07-06 10:37:52 +01:00
buffer iio: buffer: Fix checkpatch.pl warning 2025-06-09 07:45:35 +01:00
cdc iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
chemical iio: chemical: atlas-ezo-sensor: make atlas_ezo_devices const 2025-07-06 10:37:52 +01:00
common Char / Misc / IIO / other driver updates for 6.17-rc1 2025-07-29 09:52:01 -07:00
dac treewide: rename GPIO set callbacks back to their original names 2025-08-07 10:07:06 +02:00
dummy iio: dummy: Switch to iio_push_to_buffers_with_ts() and provide size of storage 2025-05-21 14:20:26 +01:00
filter iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
frequency iio: admv1013: replace redundant ternary operator with just len 2025-05-21 14:21:34 +01:00
gyro iio: Remove single use of macro definition for IRQ name 2025-06-09 07:45:36 +01:00
health iio: health: afe4404: convert to use maple tree register cache 2025-06-26 19:32:53 +01:00
humidity iio: Remove single use of macro definition for driver name 2025-06-09 07:45:36 +01:00
imu iio: imu: inv_icm42600: change invalid data error to -EBUSY 2025-08-11 21:35:01 +01:00
light iio: light: cm3232: make struct cm3232_als_info const 2025-07-13 15:36:24 +01:00
magnetometer iio: magnetometer: af8133j: use = { } instead of memset() 2025-06-26 19:32:57 +01:00
multiplexer iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
orientation iio: orientation: hid-sensor-rotation: remove unnecessary alignment 2025-05-21 14:20:28 +01:00
position iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
potentiometer iio: potentiometer: Drop unused export.h includes 2025-06-26 19:32:52 +01:00
potentiostat iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
pressure iio: pressure: dlhl60d: Use separate structures rather than an array for chip info 2025-07-13 15:36:24 +01:00
proximity iio: proximity: isl29501: fix buffered read on big-endian systems 2025-08-11 21:35:01 +01:00
resolver iio: Remove single use of macro definition for driver name 2025-06-09 07:45:36 +01:00
temperature iio: temperature: maxim_thermocouple: use DMA-safe buffer for spi_read() 2025-08-11 21:35:01 +01:00
test iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
trigger iio: trigger: stm32-lptimer: Fix build warnings about export.h 2025-06-26 19:32:52 +01:00
iio_core.h iio: Add iio_read_channel_label to inkern API 2024-06-28 20:06:56 +01:00
iio_core_trigger.h iio: core-trigger: make iio_device_register_trigger_consumer() an int return 2021-03-11 20:47:02 +00:00
industrialio-acpi.c iio: acpi: Add iio_get_acpi_device_name_and_data() helper function 2024-10-28 20:04:11 +00:00
industrialio-backend.c Char / Misc / IIO / other driver updates for 6.17-rc1 2025-07-29 09:52:01 -07:00
industrialio-buffer.c iio: core: mark scan_timestamp as __private 2024-12-28 14:28:14 +00:00
industrialio-configfs.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
industrialio-core.c Char / Misc / IIO / other driver updates for 6.17-rc1 2025-07-29 09:52:01 -07:00
industrialio-event.c iio: introduce the FAULT event type 2025-02-08 15:16:29 +00:00
industrialio-gts-helper.c iio: gts-helper: export iio_gts_get_total_gain() 2025-02-08 15:16:29 +00:00
industrialio-sw-device.c iio: Don't use bare "unsigned" 2022-07-01 11:19:08 +01:00
industrialio-sw-trigger.c iio: core: Fix entry not deleted when iio_register_sw_trigger_type() fails 2022-11-12 17:53:35 +00:00
industrialio-trigger.c iio: trigger: allow devices to suspend/resume theirs associated trigger 2024-08-10 11:19:36 +01:00
industrialio-triggered-event.c iio: core: move @id from struct iio_dev to struct iio_dev_opaque 2021-05-17 13:49:13 +01:00
inkern.c Merge 6.13-rc4 into char-misc-next 2025-01-13 06:17:49 +01:00
Kconfig iio: core: Add new DMABUF interface infrastructure 2024-06-30 11:29:17 +01:00
Makefile iio: core: Add iio_read_acpi_mount_matrix() helper function 2024-04-29 20:53:25 +01:00
TODO iio: core: move 'mlock' to 'struct iio_dev_opaque' 2022-11-23 19:44:00 +00:00