]> git.karo-electronics.de Git - linux-beck.git/commitdiff
pinctrl/lantiq: faulty bit inversion
authorJohn Crispin <blogic@openwrt.org>
Fri, 1 Feb 2013 12:04:56 +0000 (13:04 +0100)
committerLinus 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

index 69dec9b191d921ac53529155dd4133b0ef639503..c49c9dbe39170474d5cf07f70eb83721747e37d8 100644 (file)
@@ -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: