gpiolib: wm8994: Pay attention to the value set when enabling as output
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 9 Jun 2012 03:07:56 +0000 (11:07 +0800)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 25 Jul 2012 03:11:08 +0000 (04:11 +0100)
commit43fc6bce37ff39ab5010afadf1ea86e7cc9c2b37
tree249c2a5a2a8634a6945ebea49871bfe53ccf390a
parentdb46b26cf3a124bd5beb357e48c0e2ea6e2f1725
gpiolib: wm8994: Pay attention to the value set when enabling as output

commit 8cd578b6e28693f357867a77598a88ef3deb6b39 upstream.

Not paying attention to the value being set is a bad thing because it
means that we'll not set the hardware up to reflect what was requested.
Not setting the hardware up to reflect what was requested means that the
caller won't get the results they wanted.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/gpio/gpio-wm8994.c