]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: max77620: Replace 8 with MAX77620_GPIO_NR
authorDmitry Osipenko <digetx@gmail.com>
Thu, 9 Jul 2020 17:11:58 +0000 (20:11 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 16 Jul 2020 08:50:40 +0000 (10:50 +0200)
commit497e56f7f0a652dc59525cb6f28d413ee7e7c94d
tree3cee5ce857f85fe1309beec000d97392720b533c
parentfe3e188998d78c9a85604b79caf7f524e970f65d
gpio: max77620: Replace 8 with MAX77620_GPIO_NR

The MAX77620_GPIO_NR enum value represents the total number of GPIOs,
let's use it instead of a raw value in order to improve the code's
readability a tad.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Link: https://lore.kernel.org/r/20200709171203.12950-2-digetx@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-max77620.c