Re: [PATCH v2 1/2] iio/adc: ingenic: Fix channel offsets in buffer

From: Andy Shevchenko
Date: Mon May 22 2023 - 07:11:58 EST


On Mon, May 22, 2023 at 1:20 PM Paul Cercueil <paul@xxxxxxxxxxxxxxx> wrote:
> Le lundi 22 mai 2023 à 13:15 +0300, Andy Shevchenko a écrit :
> > On Mon, May 22, 2023 at 1:59 AM Artur Rojek <contact@xxxxxxxxxxxxxx>
> > wrote:

...

> > > + memset(tdat, 0, ARRAY_SIZE(tdat));
> >
> > Yeah, as LKP tells us this should be sizeof() instead of
> > ARRAY_SIZE().
>
> Probably "u16 tdat[6] = { 0 };" would work too?

Without 0 also would work :-)

--
With Best Regards,
Andy Shevchenko