提交 45e888ef 编写于 作者: D Dmitry Torokhov 提交者: Bartosz Golaszewski

gpiolib: of: remove of_gpio_count()

There are no more users of of_gpio_count() in the mainline kernel,
remove it.
Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: NBartosz Golaszewski <bartosz.golaszewski@linaro.org>
上级 1da5aa27
...@@ -105,17 +105,6 @@ static inline int of_gpio_named_count(const struct device_node *np, ...@@ -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"); 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, static inline int of_get_gpio_flags(const struct device_node *np, int index,
enum of_gpio_flags *flags) enum of_gpio_flags *flags)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册