History

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.

Laxman Dewangan committed 14 years ago

Commit f567fde1 parent 42b14cb1 file · +2 −2Browse files

Unified · Split

include/linux/gpio.h+2−2
@@ -22,8 +22,8 @@ · 21 unmodified lines
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