Skip to content

Commit

Permalink
pinctrl: abx500: fix abx500_config_pull_updown
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Patrice Chotard authored and Linus Walleij committed Jun 16, 2013
1 parent a2df426 commit 10a8be5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pinctrl/pinctrl-abx500.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 10a8be5

Please sign in to comment.