gpio: etraxfs: fix set register flag
authorRabin Vincent <rabin@rab.in>
Wed, 22 Jul 2015 13:05:17 +0000 (15:05 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 27 Jul 2015 12:59:30 +0000 (14:59 +0200)
BGPIO_F_UNREADABLE_REG_SET is incorrect, since the set register _is_
readable.  What's really required is BGPIO_F_READ_OUTPUT_REG_SET:
reading the set register reads the set output value.

Signed-off-by: Rabin Vincent <rabin@rab.in>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-etraxfs.c

index 0e643140efdef6d8f0d0cd293f71e70c6d0fce3f..625a9ed411dacc4fa08a7a7d2f76fa3ac98d0218 100644 (file)
@@ -140,7 +140,7 @@ static int etraxfs_gpio_probe(struct platform_device *pdev)
                                 NULL,                  /* clr */
                                 regs + port->oe,       /* dirout */
                                 NULL,                  /* dirin */
-                                BGPIOF_UNREADABLE_REG_SET);
+                                BGPIOF_READ_OUTPUT_REG_SET);
                if (ret)
                        return ret;