diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2014-01-07 06:34:11 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-02-07 03:47:02 -0500 |
commit | ef70bbe1aaa612f75360e5df5952fddec50b7ca9 (patch) | |
tree | 2f80756c83780e9ed9c67401af16022a749543c0 /Documentation/gpio/consumer.txt | |
parent | 25b35da7f4cce82271859f1b6eabd9f3bd41a2bb (diff) |
gpio: make gpiod_direction_output take a logical value
The documentation was not clear about whether
gpio_direction_output should take a logical value or the physical
level on the output line, i.e. whether the ACTIVE_LOW status
would be taken into account.
This converts gpiod_direction_output to use the logical level
and adds a new gpiod_direction_output_raw for the raw value.
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'Documentation/gpio/consumer.txt')
-rw-r--r-- | Documentation/gpio/consumer.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Documentation/gpio/consumer.txt b/Documentation/gpio/consumer.txt index e42f77d8d4ca..09854fe59307 100644 --- a/Documentation/gpio/consumer.txt +++ b/Documentation/gpio/consumer.txt | |||
@@ -154,6 +154,7 @@ raw line value: | |||
154 | void gpiod_set_raw_value(struct gpio_desc *desc, int value) | 154 | void gpiod_set_raw_value(struct gpio_desc *desc, int value) |
155 | int gpiod_get_raw_value_cansleep(const struct gpio_desc *desc) | 155 | int gpiod_get_raw_value_cansleep(const struct gpio_desc *desc) |
156 | void gpiod_set_raw_value_cansleep(struct gpio_desc *desc, int value) | 156 | void gpiod_set_raw_value_cansleep(struct gpio_desc *desc, int value) |
157 | int gpiod_direction_output_raw(struct gpio_desc *desc, int value) | ||
157 | 158 | ||
158 | The active-low state of a GPIO can also be queried using the following call: | 159 | The active-low state of a GPIO can also be queried using the following call: |
159 | 160 | ||