pinctrl: stm32: Replace custom code by gpiochip_node_count() call
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 1 Apr 2022 10:35:54 +0000 (13:35 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 8 Apr 2022 12:54:54 +0000 (15:54 +0300)
commitd9463201ec0824037a9ca84b9bb03a79d4460cfb
tree90a44be1713578feba5fd3d9e1da846f8ec5f494
parent0b19dde90ad004592792a928c75e80612be3e2e8
pinctrl: stm32: 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>
Reviewed-by: Fabien Dessenne <fabien.dessenne@foss.st.com>
drivers/pinctrl/stm32/pinctrl-stm32.c