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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Martin,

On Wed, Jul 20, 2022 at 12:31 PM Martin Larsson <martin.larsson@xxxxxxxx> 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.
>
> Acked-by: Haibo Chen <haibo.chen@xxxxxxx>
> Signed-off-by: Martin Larsson <martin.larsson@xxxxxxxx>

Reviewed-by: Fabio Estevam <festevam@xxxxxxxxx>



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux