Skip to content

Commit 1296fba

Browse files
vitkyrkalinusw
authored andcommitted
gpio: etraxfs: fix set register flag
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 <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent 8cd1470 commit 1296fba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio-etraxfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ static int etraxfs_gpio_probe(struct platform_device *pdev)
140140
NULL, /* clr */
141141
regs + port->oe, /* dirout */
142142
NULL, /* dirin */
143-
BGPIOF_UNREADABLE_REG_SET);
143+
BGPIOF_READ_OUTPUT_REG_SET);
144144
if (ret)
145145
return ret;
146146

0 commit comments

Comments
 (0)