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)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 28 Aug 2013 19:21:42 +0000 (21:21 +0200)
commit05d3534a321d7fe4524b3b83bb20318282f3ec2c
treec67addff6020b792fff503949b205059fc92cf6b
parentdb8ed174295f33e7c3441557a0caf296399ddea5
pinctrl: at91: fix get_pullup/down function return

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.

Cc: stable <stable@vger.kernel.org> # 3.8+
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>
drivers/pinctrl/pinctrl-at91.c