diff options
| author | Andy Shevchenko <[email protected]> | 2024-02-29 14:51:38 +0000 |
|---|---|---|
| committer | Bartosz Golaszewski <[email protected]> | 2024-03-01 08:07:21 +0000 |
| commit | adcad5364a692dac85e6e741bdce2a7609449ab8 (patch) | |
| tree | e935b7533ea8644ce7769e9398a575f5af5afaff /drivers/gpio/gpiolib.c | |
| parent | gpiolib: Pass consumer device through to core in devm_fwnode_gpiod_get_index() (diff) | |
| download | kernel-adcad5364a692dac85e6e741bdce2a7609449ab8.tar.gz kernel-adcad5364a692dac85e6e741bdce2a7609449ab8.zip | |
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 <[email protected]>
Reviewed-by: Linus Walleij <[email protected]>
Reviewed-by: Mika Westerberg <[email protected]>
Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'drivers/gpio/gpiolib.c')
| -rw-r--r-- | drivers/gpio/gpiolib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 3e2cd85673b6..01016b4c4674 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -4285,7 +4285,7 @@ int gpiod_count(struct device *dev, const char *con_id) int count = -ENOENT; if (is_of_node(fwnode)) - count = of_gpio_get_count(dev, con_id); + count = of_gpio_count(fwnode, con_id); else if (is_acpi_node(fwnode)) count = acpi_gpio_count(dev, con_id); else if (is_software_node(fwnode)) |
