[PATCH] iio: adc: imx8qxp-adc: propagate regulator_get_voltage error

Fabio Estevam festevam at gmail.com
Tue Jul 19 19:54:16 PDT 2022


Hi Martin,

On Tue, Jul 19, 2022 at 12:03 PM Martin Larsson <martin.larsson at actia.se> wrote:
>
> If the ADC vref regulator returns an error, for example, if CONFIG_REGULATOR
> is not set, the error will be used as a reference voltage.
>
> Introduce a guard for negative return values instead of unconditionally
> casting it to u32.

You missed your Signed-off-by line.



More information about the linux-arm-kernel mailing list