]> git.baikalelectronics.ru Git - 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)
commit80f52ce5b06b5e7dce5a6d4a08f596474a49cac2
tree0dbc8bd289f8b2db60b97ee235fce711f926163a
parent4dd7f4f0400791ece1779f05afcee88e57c78a8b
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