diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-03-04 14:10:26 -0800 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2015-03-04 23:31:36 +0100 |
commit | f3dddf2432e3123ef34b470129295641f7513d26 (patch) | |
tree | 566ea08d262f831f2eb66b651416ada0816f82db /include/linux/hid.h | |
parent | 68c18c61b23c28d4741fda0df81bc6ec40bfd14b (diff) | |
download | linux-f3dddf2432e3123ef34b470129295641f7513d26.tar.gz linux-f3dddf2432e3123ef34b470129295641f7513d26.tar.bz2 linux-f3dddf2432e3123ef34b470129295641f7513d26.zip |
HID: map telephony usage page
Currently HID code maps usages from telephony page into BTN_0, BTN_1, etc
keys which get interpreted by mousedev and userspace as left/right/middle
button clicks, which is not really helpful.
This change adds mappings for usages that have corresponding input event
definitions, and leaves the rest unmapped. This can be changed when
there are userspace consumers for more telephony usages.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/linux/hid.h')
-rw-r--r-- | include/linux/hid.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index efc7787a41a8..69f9cf7f078d 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h @@ -159,6 +159,7 @@ struct hid_item { #define HID_UP_LED 0x00080000 #define HID_UP_BUTTON 0x00090000 #define HID_UP_ORDINAL 0x000a0000 +#define HID_UP_TELEPHONY 0x000b0000 #define HID_UP_CONSUMER 0x000c0000 #define HID_UP_DIGITIZER 0x000d0000 #define HID_UP_PID 0x000f0000 |