Commit 94fc7309 authored by Wolfram Sang's avatar Wolfram Sang Committed by Linus Walleij

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: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent a0d65009
...@@ -195,7 +195,7 @@ static int gpiochip_find_base(int ngpio) ...@@ -195,7 +195,7 @@ static int gpiochip_find_base(int ngpio)
* gpiod_get_direction - return the current direction of a GPIO * gpiod_get_direction - return the current direction of a GPIO
* @desc: GPIO to get the direction of * @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. * This function may sleep if gpiod_cansleep() is true.
*/ */
......
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