From: David Herrmann Date: Thu, 29 Aug 2013 16:35:11 +0000 (-0700) Subject: Input: add SYN_MAX and SYN_CNT constants X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=52764fed5049655926bcecaefd52f0a415ceb105;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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. Signed-off-by: David Herrmann Acked-by: Peter Hutterer Signed-off-by: Dmitry Torokhov --- diff --git a/include/uapi/linux/input.h b/include/uapi/linux/input.h index 4649ee35b605..2fb6fae50e90 100644 --- a/include/uapi/linux/input.h +++ b/include/uapi/linux/input.h @@ -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