gpio-lpc32xx: Fix value handling of gpio_direction_output()
authorRoland Stigge <stigge@antcom.de>
Thu, 20 Sep 2012 08:48:03 +0000 (10:48 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 24 Sep 2012 19:56:01 +0000 (21:56 +0200)
commitb1268d3737c6316016026245eef276eda6b0a621
treec17259de86df66a8e2a257253937da9df8d44963
parent979570e02981d4a8fc20b3cc8fd651856c98ee9d
gpio-lpc32xx: Fix value handling of gpio_direction_output()

For GPIOs of gpio-lpc32xx, gpio_direction_output() ignores the value argument
(initial value of output). This patch fixes this by setting the level
accordingly.

Cc: stable@kernel.org
Signed-off-by: Roland Stigge <stigge@antcom.de>
Acked-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-lpc32xx.c