Skip to contentSkip to conversation

Input: add SYN_MAX and SYN_CNT constants

PATCH In review David Herrmann 2 participants 2 messages Aug 27, 2013 – Aug 29, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 include/uapi/linux/input.h | 2 ++
 1 file changed, 2 insertions(+)
include/uapi/linux/input.h +2 -0
index 4649ee3..2fb6fae 100644
@@ -194,6 +194,8 @@ struct input_keymap_entry {
 #define SYN_CONFIG		1
 #define SYN_MT_REPORT		2
 #define SYN_DROPPED		3
+#define SYN_MAX			0xf
+#define SYN_CNT			(SYN_MAX+1)
 
 /*
  * Keys and buttons
Signature · 1 line
1.8.4
Acked-by on v1 1/1
#1 lore raw
Quoted 26 lines · David Herrmann

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.

---
 include/uapi/linux/input.h | 2 ++
 1 file changed, 2 insertions(+)
include/uapi/linux/input.h +2 -0
index 4649ee3..2fb6fae 100644
@@ -194,6 +194,8 @@ struct input_keymap_entry {
 #define SYN_CONFIG		1
 #define SYN_MT_REPORT		2
 #define SYN_DROPPED		3
+#define SYN_MAX			0xf
+#define SYN_CNT			(SYN_MAX+1)
 
 /*
  * Keys and buttons
Signature · 1 line
1.8.4

yes please!

Cheers,
Peter