]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/hid/hid-input.c
HID: map telephony usage page
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 4 Mar 2015 22:10:26 +0000 (14:10 -0800)
committerJiri Kosina <jkosina@suse.cz>
Wed, 4 Mar 2015 22:31:36 +0000 (23:31 +0100)
commitf3dddf2432e3123ef34b470129295641f7513d26
tree566ea08d262f831f2eb66b651416ada0816f82db
parent68c18c61b23c28d4741fda0df81bc6ec40bfd14b
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>
drivers/hid/hid-input.c
include/linux/hid.h
include/uapi/linux/input.h