gpio: make gpiod_direction_output take a logical value
authorPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 7 Jan 2014 11:34:11 +0000 (12:34 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 7 Feb 2014 08:47:02 +0000 (09:47 +0100)
commitef70bbe1aaa612f75360e5df5952fddec50b7ca9
tree2f80756c83780e9ed9c67401af16022a749543c0
parent25b35da7f4cce82271859f1b6eabd9f3bd41a2bb
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>
Documentation/gpio/consumer.txt
drivers/gpio/gpiolib.c
include/asm-generic/gpio.h
include/linux/gpio/consumer.h