projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
362ba3c
)
pinctrl/lantiq: faulty bit inversion
author
John Crispin
<blogic@openwrt.org>
Fri, 1 Feb 2013 12:04:56 +0000
(13:04 +0100)
committer
Linus Walleij
<linus.walleij@linaro.org>
Tue, 5 Feb 2013 15:17:21 +0000
(16:17 +0100)
The logic of the OD bit was inverted when calling the
pinconf get method.
Signed-off-by: John Crispin <blogic@openwrt.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-xway.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/pinctrl-xway.c
b/drivers/pinctrl/pinctrl-xway.c
index 69dec9b191d921ac53529155dd4133b0ef639503..c49c9dbe39170474d5cf07f70eb83721747e37d8 100644
(file)
--- a/
drivers/pinctrl/pinctrl-xway.c
+++ b/
drivers/pinctrl/pinctrl-xway.c
@@
-443,7
+443,7
@@
static int xway_pinconf_get(struct pinctrl_dev *pctldev,
else
reg = GPIO_OD(pin);
*config = LTQ_PINCONF_PACK(param,
- !
!
gpio_getbit(info->membase[0], reg, PORT_PIN(pin)));
+ !gpio_getbit(info->membase[0], reg, PORT_PIN(pin)));
break;
case LTQ_PINCONF_PARAM_PULL: