History

Input: add SYN_MAX and SYN_CNT constants

SYN_* events are special and not enabled via set_bit() for devices. Hence, they haven't been really needed, yet. However, user-space can still make great use of that for int->string debugging helpers or alike. Also, I haven't seen any reason not to define these, so here they are.

David Herrmann committed 13 years ago

Commit 52764fe1 parent d33c4aa1 file · +2 −0Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/input.h+2−0
@@ -194,6 +194,8 @@ struct input_keymap_entry { · 193 unmodified lines
194194 #define SYN_CONFIG 1
195195 #define SYN_MT_REPORT 2
196196 #define SYN_DROPPED 3
197+#define SYN_MAX 0xf
198+#define SYN_CNT (SYN_MAX+1)
197199
198200 /*
199201 * Keys and buttons