Re: [PATCH 1/2] iio: light: vcnl4000: use correct channel array size
Jonathan Cameron <[email protected]>
| Newsgroups | org.kernel.vger.linux-iio,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <20260812043914.4181b413@jic23-huawei> |
On Tue, 11 Aug 2026 12:53:22 +0300 Andy Shevchenko <[email protected]> wrote: > On Tue, Aug 11, 2026 at 05:07:24PM +1000, Tsz Shan Chan wrote: > > Use ARRAY_SIZE(vcnl4040_channels) for num_channels to match .channels. > > I was under impression that I have seen this patch a few months ago. > In any case sounds like a fix and hence needs a Fixes tag. > They are both the same size == 2 I think. So whilst nice to fix this I don't see it as needing a fixes tag as such. It would be helpful if the patch description called out that the ARRAY_SIZE() of the wrong array happens to match the one it should be. Jonathan