Re: [PATCH] iio: proximity: sx9324: fix out-of-bounds read of scan
From: Arnav Kapoor
Date: Thu Oct 22 2026 - 12:45:38 EST
On Thu, Oct 22, 2026 at 07:40:29PM +0300, Andy Shevchenko wrote:
> NAK to this hunk.
> Homework:
> read my comments regarding formatting such arrays in linux-iio@ mailing list
> for last calendar year or so and summarize the idea.
Understood. I'll go through your comments on linux-iio about formatting
such tables and redo the array accordingly in v2.
> > +static_assert(ARRAY_SIZE(sx9324_scan_period_table) ==
> > + ARRAY_SIZE(sx9324_samp_freq_table));
>
> This is fine, but I would dare make it a single line.
Will do.
Thanks for the review,
Arnav