summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2018-01-09 12:35:53 +0100
committerLinus Walleij <linus.walleij@linaro.org>2018-01-09 15:35:25 +0100
commit94fc73094abe4798be8d4af60227be41a6dc3be8 (patch)
treec9165ffd500326ed71f8cf2413e5e9337d712592 /drivers/gpio
parenta0d65009411c620a9e7140d6a83b9d5aeb8f1801 (diff)
downloadlinux-94fc73094abe4798be8d4af60227be41a6dc3be8.tar.gz
linux-94fc73094abe4798be8d4af60227be41a6dc3be8.tar.bz2
linux-94fc73094abe4798be8d4af60227be41a6dc3be8.zip
gpio: correct docs about return value of gpiod_get_direction
The use of the GPIOF_* flags is deprecated, so don't advertise them here. Document the plain numbers for now until we have a better solution. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpiolib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index 986293143068..0e78a5023cb2 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -195,7 +195,7 @@ static int gpiochip_find_base(int ngpio)
* gpiod_get_direction - return the current direction of a GPIO
* @desc: GPIO to get the direction of
*
- * Return GPIOF_DIR_IN or GPIOF_DIR_OUT, or an error code in case of error.
+ * Returns 0 for output, 1 for input, or an error code in case of error.
*
* This function may sleep if gpiod_cansleep() is true.
*/