Re: [PATCH v2 06/10] iio: light: opt3001: localize for loop iterator
From: Andy Shevchenko
Date: Tue May 12 2026 - 11:51:11 EST
On Tue, May 12, 2026 at 12:57:26PM +0200, Joshua Crofts via B4 Relay wrote:
> Localize loop iterator to tighten scope and improve code style
> per checkpatch.pl report.
>
> No functional change.
...
> const struct opt3001_scale *scale = &(*opt->chip_info->scales)[i];
This is an interesting way of writing &opt->chip_info->scales[i] ?
--
With Best Regards,
Andy Shevchenko