This corrects the gpiod_direction_output description comment
and adds clarification about the value parameter being a raw
value, not taking into account ACTIVE_LOW status.

Signed-off-by: Philipp Zabel <[email protected]>
---
 drivers/gpio/gpiolib.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index 4e10b10..95f11ce 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -1730,10 +1730,13 @@ fail:
 EXPORT_SYMBOL_GPL(gpiod_direction_input);
 
 /**
- * gpiod_direction_output - set the GPIO direction to input
+ * gpiod_direction_output - set the GPIO direction to output
  * @desc:      GPIO to set to output
  * @value:     initial output value of the GPIO
  *
+ * Set the raw value of the GPIO, i.e. the value of its physical line without
+ * regard for its ACTIVE_LOW status.
+ *
  * Set the direction of the passed GPIO to output, such as gpiod_set_value() 
can
  * be called safely on it. The initial value of the output must be specified.
  *
-- 
1.8.5.2

--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to