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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 10 Oct 2012 02:31:04 +0000 (03:31 +0100)
commit247a9ca13ccd0e1cfd81b481e91d365950eaeaaf
tree86d8f3cac24c1030ff195d6ef44c0f1725caaacb
parent9109ae151b6dd96238b595240ac72e537a84d59d
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: Ben Hutchings <ben@decadent.org.uk>
drivers/gpio/gpio-lpc32xx.c