Re: [PATCH] iio: adc: vf610: Add missing check for device_property_read_u32_array

From: Andy Shevchenko

Date: Fri Jan 30 2026 - 00:25:29 EST


On Thu, Jan 29, 2026 at 05:40:21PM +0000, Jonathan Cameron wrote:
> On Wed, 28 Jan 2026 09:29:47 +0000
> Nuno Sá <noname.nuno@xxxxxxxxx> wrote:
> > On Wed, 2026-01-28 at 12:27 +0800, Chen Ni wrote:

...

> Given the driver has a fallback for info->max_adck_rate[x] == 0
> I think this is intentional. It would be clearer if this had done.
>
> info->max_adck_rate[0] = 8;
> info->max_adck_rate[1] = 8;
> info->max_adck_rate[2] = 8;

Just in case, we have memset32() if it fits :-)

> device_property_read_u32_array(dev, "fsl,adck-max-frequency", info->max_adck_rate, 3);
>
> though rather than where it has the fallback in vf610_adc_calculate_rates()
>

--
With Best Regards,
Andy Shevchenko