Skip to content

Commit

Permalink
pinctrl/lantiq: faulty bit inversion
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
John Crispin authored and Linus Walleij committed Feb 5, 2013
1 parent 362ba3c commit 7541083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pinctrl/pinctrl-xway.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7541083

Please sign in to comment.