Skip to content
Commit a0e3b8e2 authored by Rajeshwar R Shinde's avatar Rajeshwar R Shinde Committed by Bartosz Golaszewski
Browse files

gpio: imx-scu: Use ARRAY_SIZE for array length



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

Signed-off-by: default avatarRajeshwar R Shinde <coolrrsh@gmail.com>
Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
parent 0988ffa0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment