Browse Source

pinctrl/lantiq: faulty bit inversion

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>
John Crispin 12 years ago
parent
commit
7541083fc4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/pinctrl/pinctrl-xway.c

+ 1 - 1
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: