Skip to content

Commit 1cfab8f

Browse files
geertulinusw
authored andcommitted
gpiolib: Fix comment referring to gpio_*() in gpiod_*()
Fixes: 79a9bec ("gpiolib: export descriptor-based GPIO interface") Signed-off-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent e0a8604 commit 1cfab8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpio/gpiolib.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1867,7 +1867,7 @@ static void gpiod_set_array_value_priv(bool raw, bool can_sleep,
18671867
void gpiod_set_raw_value(struct gpio_desc *desc, int value)
18681868
{
18691869
VALIDATE_DESC_VOID(desc);
1870-
/* Should be using gpio_set_value_cansleep() */
1870+
/* Should be using gpiod_set_value_cansleep() */
18711871
WARN_ON(desc->gdev->chip->can_sleep);
18721872
_gpiod_set_raw_value(desc, value);
18731873
}
@@ -1887,7 +1887,7 @@ EXPORT_SYMBOL_GPL(gpiod_set_raw_value);
18871887
void gpiod_set_value(struct gpio_desc *desc, int value)
18881888
{
18891889
VALIDATE_DESC_VOID(desc);
1890-
/* Should be using gpio_set_value_cansleep() */
1890+
/* Should be using gpiod_set_value_cansleep() */
18911891
WARN_ON(desc->gdev->chip->can_sleep);
18921892
if (test_bit(FLAG_ACTIVE_LOW, &desc->flags))
18931893
value = !value;

0 commit comments

Comments
 (0)