pinctrl: meson: Replace custom code by gpiochip_node_count() call
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 1 Apr 2022 10:36:02 +0000 (13:36 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 18 Apr 2022 13:18:52 +0000 (16:18 +0300)
commitedc5601db66411a8c9c6b08b3aacf7e154a34c6d
treea5bd34c89daa1efac586eba28cd924c60131a47b
parent6671d0bc17866f71b8ca7ea3fb7e6dfc2a8069d2
pinctrl: meson: Replace custom code by gpiochip_node_count() call

Since we have generic function to count GPIO controller nodes
under a given device, there is no need to open code it. Replace
custom code by gpiochip_node_count() call.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
drivers/pinctrl/meson/pinctrl-meson.c