[PATCH] iio: adc: ab8500-gpadc: depend on IIO=y

Pengpeng Hou hppiscas at 163.com
Thu Dec 3 17:59:53 PST 2026


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.

Fixes: 07063bbfa98e ("iio: adc: New driver for the AB8500 GPADC")
Signed-off-by: Pengpeng Hou <hppiscas at 163.com>
---
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(-)

diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig
index a802d8ee4dd9cd7ddeea0d109b21a4bdd6435464..a0b7e27913d6fbbeeac18e7f7d9e65be5ddf3ce4 100644
--- a/drivers/iio/adc/Kconfig
+++ b/drivers/iio/adc/Kconfig
@@ -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




More information about the linux-arm-kernel mailing list