Re: [PATCH] iio: light: veml3328: remove redundant cast in read_avail
Giorgi Tchankvetadze <[email protected]>
| Newsgroups | org.kernel.vger.linux-iio,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <CAE7dp2qeg=Zzrr+cqOEJOnn7UudiD=a=_578T3OzKCPTX28JmA@mail.gmail.com> |
On Mon, Jul 27, 2026 at 5:16 PM David Lechner <[email protected]> wrote: > > Usually, we would declare the array like: > > static const int veml3328_scale_vals[4][4][2] ... > > in which case this cast would be needed. > > I intentionally kept the patch tiny and dealt with the obvious thing, but yes, I agree this is how it should be done.