From: Dmitry Torokhov Date: Mon, 19 Dec 2022 19:20:12 +0000 (-0800) Subject: gpiolib: of: remove of_gpio_count() X-Git-Tag: v6.6.7~3484^2~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=45e888ef99d9f378c2cbadc3caa4eee1aaf09eac;p=platform%2Fkernel%2Flinux-starfive.git gpiolib: of: remove of_gpio_count() There are no more users of of_gpio_count() in the mainline kernel, remove it. Signed-off-by: Dmitry Torokhov Reviewed-by: Andy Shevchenko Signed-off-by: Bartosz Golaszewski --- diff --git a/include/linux/of_gpio.h b/include/linux/of_gpio.h index 6db6272..39f16a9 100644 --- a/include/linux/of_gpio.h +++ b/include/linux/of_gpio.h @@ -105,17 +105,6 @@ static inline int of_gpio_named_count(const struct device_node *np, return of_count_phandle_with_args(np, propname, "#gpio-cells"); } -/** - * of_gpio_count() - Count GPIOs for a device - * @np: device node to count GPIOs for - * - * Same as of_gpio_named_count, but hard coded to use the 'gpios' property - */ -static inline int of_gpio_count(const struct device_node *np) -{ - return of_gpio_named_count(np, "gpios"); -} - static inline int of_get_gpio_flags(const struct device_node *np, int index, enum of_gpio_flags *flags) {