Re: [PATCH v2 2/3] iio: adc: sun20i-gpadc: add A523 gpadc support
From: Andy Shevchenko
Date: Wed May 13 2026 - 16:13:14 EST
On Wed, May 13, 2026 at 01:53:49PM +0200, Andre Przywara wrote:
> On 5/13/26 13:44, Sanjay Chitroda wrote:
> > On 13 May 2026 10:29:43 am IST, Michal Piekos <michal.piekos@xxxxxxxxxxxxx> wrote:
> > > + if (ret <= 0)
> >
> > Thank you Michal for the change.
> >
> > Have you validated the changes ?
> > It looks while success ret would be 0 and it would give return error.
Good catch!
> But devm_clk_bulk_get_all_enabled() returns the number of clocks found and
> enabled. And since we need at least one, I think this is correct, and the
> error message below reflects that.
>
> To me that change looks good:
>
> Reviewed-by: Andre Przywara <andre.przywara@xxxxxxx>
== 0 ???
Doesn't look like correct code.
--
With Best Regards,
Andy Shevchenko