提交 7541083f 编写于 作者: J John Crispin 提交者: Linus Walleij

pinctrl/lantiq: faulty bit inversion

The logic of the OD bit was inverted when calling the
pinconf get method.
Signed-off-by: NJohn Crispin <blogic@openwrt.org>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 362ba3cf
...@@ -443,7 +443,7 @@ static int xway_pinconf_get(struct pinctrl_dev *pctldev, ...@@ -443,7 +443,7 @@ static int xway_pinconf_get(struct pinctrl_dev *pctldev,
else else
reg = GPIO_OD(pin); reg = GPIO_OD(pin);
*config = LTQ_PINCONF_PACK(param, *config = LTQ_PINCONF_PACK(param,
!!gpio_getbit(info->membase[0], reg, PORT_PIN(pin))); !gpio_getbit(info->membase[0], reg, PORT_PIN(pin)));
break; break;
case LTQ_PINCONF_PARAM_PULL: case LTQ_PINCONF_PARAM_PULL:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册