]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
HID: plantronics: Update to map volume up/down controls
authorTerry Junge <terry.junge@plantronics.com>
Mon, 8 Jun 2015 21:27:57 +0000 (14:27 -0700)
committerJiri Kosina <jkosina@suse.cz>
Fri, 12 Jun 2015 13:04:17 +0000 (15:04 +0200)
commit81bb773faed7f5f0e82f14cdfcfe4e89fbea0e19
tree0dbc8bd289f8b2db60b97ee235fce711f926163a
parent6efdb114b430000b6b96d5beb78cd1345d4513dd
HID: plantronics: Update to map volume up/down controls

Update Kconfig with enhanced help text for hid-plantronics driver.

Update hid-plantronics.c to identify device type and correctly map
either the vendor unique or consumer control volume up/down usages
to KEY_VOLUMEUP and KEY_VOLUMEDOWN events. Unmapped usages are ignored
to prevent core mapping of unknown usages to random mouse events.

Tested on ChromeBox/ChromeBook with various Plantronics devices.

Signed-off-by: Terry Junge <terry.junge@plantronics.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/Kconfig
drivers/hid/hid-plantronics.c