gpiolib: Fix comment referring to gpio_*() in gpiod_*()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 14 Mar 2016 15:24:12 +0000 (16:24 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 16 Mar 2016 12:11:11 +0000 (13:11 +0100)
Fixes: 79a9becda8940deb ("gpiolib: export descriptor-based GPIO interface")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c

index 1741ef4d2aaa04e376325673176859ac3b221869..72065532c1c7bfda9796c55e2d350d2a1da00349 100644 (file)
@@ -1867,7 +1867,7 @@ static void gpiod_set_array_value_priv(bool raw, bool can_sleep,
 void gpiod_set_raw_value(struct gpio_desc *desc, int value)
 {
        VALIDATE_DESC_VOID(desc);
-       /* Should be using gpio_set_value_cansleep() */
+       /* Should be using gpiod_set_value_cansleep() */
        WARN_ON(desc->gdev->chip->can_sleep);
        _gpiod_set_raw_value(desc, value);
 }
@@ -1887,7 +1887,7 @@ EXPORT_SYMBOL_GPL(gpiod_set_raw_value);
 void gpiod_set_value(struct gpio_desc *desc, int value)
 {
        VALIDATE_DESC_VOID(desc);
-       /* Should be using gpio_set_value_cansleep() */
+       /* Should be using gpiod_set_value_cansleep() */
        WARN_ON(desc->gdev->chip->can_sleep);
        if (test_bit(FLAG_ACTIVE_LOW, &desc->flags))
                value = !value;