summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/pinctrl-abx500.c
diff options
context:
space:
mode:
authorPatrice Chotard <patrice.chotard@st.com>2013-05-24 16:06:29 +0400
committerLinus Walleij <linus.walleij@linaro.org>2013-06-16 13:56:50 +0400
commit10a8be541471f8eb3b22b147499bd5ef6ecb5e8e (patch)
tree593e311248861b0139fb51744158da54aabe21c5 /drivers/pinctrl/pinctrl-abx500.c
parenta2df4269cad79635201587c5c5404f0b1cb0b05c (diff)
downloadlinux-10a8be541471f8eb3b22b147499bd5ef6ecb5e8e.tar.xz
pinctrl: abx500: fix abx500_config_pull_updown
Fix abx500_config_pull_updown() to set correct bit in AB8540_GPIO_PULL_UPDOWN_REG. Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-abx500.c')
-rw-r--r--drivers/pinctrl/pinctrl-abx500.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-abx500.c b/drivers/pinctrl/pinctrl-abx500.c
index fa7a8ede19ab..823e261b4d85 100644
--- a/drivers/pinctrl/pinctrl-abx500.c
+++ b/drivers/pinctrl/pinctrl-abx500.c
@@ -203,7 +203,7 @@ static int abx500_config_pull_updown(struct abx500_pinctrl *pct,
goto out;
}
- pos = offset << 1;
+ pos = (offset - pullud->first_pin) << 1;
ret = abx500_mask_and_set_register_interruptible(pct->dev,
AB8500_MISC, AB8540_GPIO_PULL_UPDOWN_REG,