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

From: Andy Shevchenko

Date: Fri Dec 04 2026 - 11:57:19 EST


On Fri, Dec 04, 2026 at 09:59:53AM +0800, Pengpeng Hou wrote:
> 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.

...

> 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

Why not

default y if IIO=y

?

--
With Best Regards,
Andy Shevchenko