Skip to content

Commit f567fde

Browse files
ldewanganlinusw
authored andcommitted
gpio: fix bits conflict for gpio flags
The bit 2 and 3 in GPIO flag are allocated for the flag OPEN_DRAIN/OPEN_SOURCE. These bits are reused for the flag EXPORT/EXPORT_CHANGEABLE and so creating conflict. Fix this conflict by assigning bit 4 and 5 for the flag EXPORT/EXPORT_CHANGEABLE. Signed-off-by: Laxman Dewangan <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent 42b14cb commit f567fde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/linux/gpio.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
/* Gpio pin is open source */
2323
#define GPIOF_OPEN_SOURCE (1 << 3)
2424

25-
#define GPIOF_EXPORT (1 << 2)
26-
#define GPIOF_EXPORT_CHANGEABLE (1 << 3)
25+
#define GPIOF_EXPORT (1 << 4)
26+
#define GPIOF_EXPORT_CHANGEABLE (1 << 5)
2727
#define GPIOF_EXPORT_DIR_FIXED (GPIOF_EXPORT)
2828
#define GPIOF_EXPORT_DIR_CHANGEABLE (GPIOF_EXPORT | GPIOF_EXPORT_CHANGEABLE)
2929

0 commit comments

Comments
 (0)