OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2df426
)
pinctrl: abx500: fix abx500_config_pull_updown
author
Patrice Chotard
<patrice.chotard@st.com>
Fri, 24 May 2013 12:06:29 +0000
(14:06 +0200)
committer
Linus Walleij
<linus.walleij@linaro.org>
Sun, 16 Jun 2013 09:56:50 +0000
(11:56 +0200)
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>
drivers/pinctrl/pinctrl-abx500.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/pinctrl-abx500.c
b/drivers/pinctrl/pinctrl-abx500.c
index
fa7a8ed
..
823e261
100644
(file)
--- 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,