summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2013-08-29 09:35:11 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2013-08-29 09:36:16 -0700
commit52764fed5049655926bcecaefd52f0a415ceb105 (patch)
tree07e434d0a644cb4a0abf6cdb2150d4bb263c8ac4 /include/uapi
parentd33c4aa32d426a7c00d33b5b1212720d5bc3fa44 (diff)
downloadtalos-op-linux-52764fed5049655926bcecaefd52f0a415ceb105.tar.gz
talos-op-linux-52764fed5049655926bcecaefd52f0a415ceb105.zip
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 <dh.herrmann@gmail.com> Acked-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/input.h2
1 files changed, 2 insertions, 0 deletions
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
OpenPOWER on IntegriCloud