Skip to contentSkip to conversation

iio: adc: ab8500-gpadc: depend on IIO=y

PATCH New Pengpeng Hou 1 participant 1 message Dec 4 IIO

lore
Share & tools
lore
#0 lore raw

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.

Fixes 07063bbfa98e ("iio: adc: New driver for the AB8500 GPADC")

---
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
index a802d8ee4dd9cd7ddeea0d109b21a4bdd6435464..a0b7e27913d6fbbeeac18e7f7d9e65be5ddf3ce4 100644
@@ -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