Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7541083f authored by John Crispin's avatar John Crispin Committed by Linus Walleij
Browse files

pinctrl/lantiq: faulty bit inversion



The logic of the OD bit was inverted when calling the
pinconf get method.

Signed-off-by: default avatarJohn Crispin <blogic@openwrt.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 362ba3cf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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: