From: Geert Uytterhoeven Date: Mon, 14 Mar 2016 15:24:12 +0000 (+0100) Subject: gpiolib: Fix comment referring to gpio_*() in gpiod_*() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1cfab8f8b397f7d95ad43f72ed9a1fa7d26e210e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git gpiolib: Fix comment referring to gpio_*() in gpiod_*() Fixes: 79a9becda8940deb ("gpiolib: export descriptor-based GPIO interface") Signed-off-by: Geert Uytterhoeven Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 1741ef4d2aaa..72065532c1c7 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -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;