Commit 1cfab8f8 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Linus Walleij

gpiolib: Fix comment referring to gpio_*() in gpiod_*()

Fixes: 79a9becd ("gpiolib: export descriptor-based GPIO interface")
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent e0a8604f
...@@ -1867,7 +1867,7 @@ static void gpiod_set_array_value_priv(bool raw, bool can_sleep, ...@@ -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) void gpiod_set_raw_value(struct gpio_desc *desc, int value)
{ {
VALIDATE_DESC_VOID(desc); 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); WARN_ON(desc->gdev->chip->can_sleep);
_gpiod_set_raw_value(desc, value); _gpiod_set_raw_value(desc, value);
} }
...@@ -1887,7 +1887,7 @@ EXPORT_SYMBOL_GPL(gpiod_set_raw_value); ...@@ -1887,7 +1887,7 @@ EXPORT_SYMBOL_GPL(gpiod_set_raw_value);
void gpiod_set_value(struct gpio_desc *desc, int value) void gpiod_set_value(struct gpio_desc *desc, int value)
{ {
VALIDATE_DESC_VOID(desc); 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); WARN_ON(desc->gdev->chip->can_sleep);
if (test_bit(FLAG_ACTIVE_LOW, &desc->flags)) if (test_bit(FLAG_ACTIVE_LOW, &desc->flags))
value = !value; value = !value;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment