]> git.hungrycats.org Git - linux/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Oct 2012 17:40:02 +0000 (10:40 -0700)
commitfa0dd16bd04e36a10c3e271732d349f869b4f2c0
tree3eac21f1551003cbc1f1a870484969ffada03e31
parentae4c274366793c3c963f569ef624a0300d855627
gpio-lpc32xx: Fix value handling of gpio_direction_output()

commit b1268d3737c6316016026245eef276eda6b0a621 upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpio/gpio-lpc32xx.c