diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2016-03-14 11:24:12 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-03-16 08:11:11 -0400 |
commit | 1cfab8f8b397f7d95ad43f72ed9a1fa7d26e210e (patch) | |
tree | 8436f3e361e7b1435f079b1125576db9e43abb3d | |
parent | e0a8604f1300cefab4aeafe214fc57954a7b4487 (diff) |
gpiolib: Fix comment referring to gpio_*() in gpiod_*()
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>
-rw-r--r-- | drivers/gpio/gpiolib.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, | |||
1867 | void gpiod_set_raw_value(struct gpio_desc *desc, int value) | 1867 | void gpiod_set_raw_value(struct gpio_desc *desc, int value) |
1868 | { | 1868 | { |
1869 | VALIDATE_DESC_VOID(desc); | 1869 | VALIDATE_DESC_VOID(desc); |
1870 | /* Should be using gpio_set_value_cansleep() */ | 1870 | /* Should be using gpiod_set_value_cansleep() */ |
1871 | WARN_ON(desc->gdev->chip->can_sleep); | 1871 | WARN_ON(desc->gdev->chip->can_sleep); |
1872 | _gpiod_set_raw_value(desc, value); | 1872 | _gpiod_set_raw_value(desc, value); |
1873 | } | 1873 | } |
@@ -1887,7 +1887,7 @@ EXPORT_SYMBOL_GPL(gpiod_set_raw_value); | |||
1887 | void gpiod_set_value(struct gpio_desc *desc, int value) | 1887 | void gpiod_set_value(struct gpio_desc *desc, int value) |
1888 | { | 1888 | { |
1889 | VALIDATE_DESC_VOID(desc); | 1889 | VALIDATE_DESC_VOID(desc); |
1890 | /* Should be using gpio_set_value_cansleep() */ | 1890 | /* Should be using gpiod_set_value_cansleep() */ |
1891 | WARN_ON(desc->gdev->chip->can_sleep); | 1891 | WARN_ON(desc->gdev->chip->can_sleep); |
1892 | if (test_bit(FLAG_ACTIVE_LOW, &desc->flags)) | 1892 | if (test_bit(FLAG_ACTIVE_LOW, &desc->flags)) |
1893 | value = !value; | 1893 | value = !value; |