iio: adc: ab8500-gpadc: depend on IIO=y
PATCH 1/1 iio: adc: ab8500-gpadc: depend on IIO=y
AB8500_GPADC selects a built-in platform driver, but can be enabled when IIO=m. In that configuration the parent directory is entered for modules and the selected ADC object is not built in.
Require a built-in IIO core, keeping the AB8500 and regulator dependencies intact.
The issue was found by our static-analysis tool and manually reviewed.
---
The original patch was prepared with Gemini. Codex assisted with this review and revision (Assisted-by: gpt 5).
Starting from the ARM u8500 defconfig, GPADC was selectable with IIO=m before the change but not afterwards. IIO=y still allowed GPADC. This was a Kconfig test using the kernel dummy cross tools; no target binary was built.
drivers/iio/adc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/adc/Kconfig +1 -1
@@ -24,7 +24,7 @@ config 88PM886_GPADC config AB8500_GPADC bool "ST-Ericsson AB8500 GPADC driver" - depends on AB8500_CORE && REGULATOR_AB8500 + depends on IIO=y && AB8500_CORE && REGULATOR_AB8500 default y help AB8500 Analog Baseband, mixed signal integrated circuit GPADC
base-commit: d06ce6f1eb5eeffd4ebcfde345dc34a98131d106