Re: [PATCH] gpio: gpio-imx-scu: Use ARRAY_SIZE for array length

From: Andy Shevchenko
Date: Thu Aug 10 2023 - 05:54:48 EST


On Wed, Aug 9, 2023 at 8:12 PM <coolrrsh@xxxxxxxxx> wrote:
>
> From: Rajeshwar R Shinde <coolrrsh@xxxxxxxxx>
>
> Use of macro ARRAY_SIZE to calculate array size minimizes
> the redundant code and improves code reusability.
> This fixes warnings reported by Coccinelle:
> drivers/gpio/gpio-imx-scu.c:106:32-33: WARNING: Use ARRAY_SIZE

Can you test your changes, please?
We don't want just mechanical (scripted) conversion with obviously
wrong results.

NAK.

--
With Best Regards,
Andy Shevchenko