diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2022-12-19 22:20:12 +0300 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2023-01-30 17:55:28 +0300 |
commit | 45e888ef99d9f378c2cbadc3caa4eee1aaf09eac (patch) | |
tree | 2978fdc821f464e33d2ea405747dd404594b7192 /include/linux/of_gpio.h | |
parent | 1da5aa27bec5defc4f4550edce4b41f80e7accd1 (diff) | |
download | linux-45e888ef99d9f378c2cbadc3caa4eee1aaf09eac.tar.xz |
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 <dmitry.torokhov@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'include/linux/of_gpio.h')
-rw-r--r-- | include/linux/of_gpio.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/include/linux/of_gpio.h b/include/linux/of_gpio.h index 6db627257a7b..39f16a960565 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) { |