pinctrl: at91: fix get_pullup/down function return
authorBoris BREZILLON <b.brezillon@overkiz.com>
Tue, 27 Aug 2013 13:19:21 +0000 (15:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Sep 2013 00:18:14 +0000 (17:18 -0700)
commit25a870d4dc930531f545aa1ae0cdca281d99f980
treeed52fb1d09de128217afe17e74f3a9479ab88009
parentff70cfafb27ead6e06ba3d2e2f648fee7137d9e8
pinctrl: at91: fix get_pullup/down function return

commit 05d3534a321d7fe4524b3b83bb20318282f3ec2c upstream.

In PIO_PUSR and PIO_PPDSR register if a given bit is set 1 this means the
pullup/down for this pin (pin is represented as a bit position) is
disabled.

Signed-off-by: Boris BREZILLON <b.brezillon@overkiz.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pinctrl/pinctrl-at91.c