diff mbox series

gpio: of: Fix bogus reference to gpiod_get_count()

Message ID 20191120154521.16273-1-geert+renesas@glider.be
State New
Headers show
Series gpio: of: Fix bogus reference to gpiod_get_count() | expand

Commit Message

Geert Uytterhoeven Nov. 20, 2019, 3:45 p.m. UTC
The recommended function is called gpiod_count(), not gpiod_get_count().

Fixes: f626d6dfb7098525 ("gpio: of: Break out OF-only code")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 drivers/gpio/gpiolib-of.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Linus Walleij Nov. 22, 2019, 12:55 p.m. UTC | #1
On Wed, Nov 20, 2019 at 4:45 PM Geert Uytterhoeven
<geert+renesas@glider.be> wrote:

> The recommended function is called gpiod_count(), not gpiod_get_count().
>
> Fixes: f626d6dfb7098525 ("gpio: of: Break out OF-only code")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

Patch applied!

Yours,
Linus Walleij
diff mbox series

Patch

diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c
index bd06743a5d7cd2cc..dc27b1a88e9343a8 100644
--- a/drivers/gpio/gpiolib-of.c
+++ b/drivers/gpio/gpiolib-of.c
@@ -27,7 +27,7 @@ 
  * This is used by external users of of_gpio_count() from <linux/of_gpio.h>
  *
  * FIXME: get rid of those external users by converting them to GPIO
- * descriptors and let them all use gpiod_get_count()
+ * descriptors and let them all use gpiod_count()
  */
 int of_gpio_get_count(struct device *dev, const char *con_id)
 {