Documentation: gpio: correct return value of gpiod_get_direction
[sfrench/cifs-2.6.git] / Documentation / gpio / consumer.txt
index 63e1bd1d88e324defd01d1ed1fddac5952629d55..7aac3308151016c5f3f4b33d0e78a956221f4fe7 100644 (file)
@@ -184,7 +184,7 @@ A driver can also query the current direction of a GPIO:
 
        int gpiod_get_direction(const struct gpio_desc *desc)
 
-This function will return either GPIOF_DIR_IN or GPIOF_DIR_OUT.
+This function returns 0 for output, 1 for input, or an error code in case of error.
 
 Be aware that there is no default direction for GPIOs. Therefore, **using a GPIO
 without setting its direction first is illegal and will result in undefined