gpio: of: Make of_gpio_get_count() take firmware node as a parameter
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 29 Feb 2024 14:51:38 +0000 (16:51 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Fri, 1 Mar 2024 08:07:21 +0000 (09:07 +0100)
commitadcad5364a692dac85e6e741bdce2a7609449ab8
treee935b7533ea8644ce7769e9398a575f5af5afaff
parent0d776cfd5e5b559fdf2e38285c2aea4b7048acbd
gpio: of: Make of_gpio_get_count() take firmware node as a parameter

Make of_gpio_get_count() take firmware node as a parameter in order
to be aligned with other functions and decouple from unused device
pointer. The latter helps to create a common fwnode_gpio_count()
in the future.

While at it, rename to be of_gpio_count() to be aligned with the others.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpiolib-of.c
drivers/gpio/gpiolib-of.h
drivers/gpio/gpiolib.c