summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2013-08-29 18:35:11 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2013-08-29 18:36:16 +0200
commit52764fed5049655926bcecaefd52f0a415ceb105 (patch)
tree07e434d0a644cb4a0abf6cdb2150d4bb263c8ac4 /include
parentInput: max11801_ts - convert to devm (diff)
downloadlinux-52764fed5049655926bcecaefd52f0a415ceb105.tar.xz
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')
-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