]> git.baikalelectronics.ru Git - kernel.git/commit
HID: assorted usage updates from hut 1.12
authorJarod Wilson <jarod@redhat.com>
Tue, 19 Apr 2011 19:28:30 +0000 (15:28 -0400)
committerJiri Kosina <jkosina@suse.cz>
Wed, 18 May 2011 15:07:34 +0000 (17:07 +0200)
commit2cf6ceb9b34c9a38cbfc5a7a3043e9a780ace209
treefdd82f76f1dab5f7b2e0e1009d8cb6a6cf44225d
parent4b67ab9e67c52ef3819f732d84bf596b2752a6b2
HID: assorted usage updates from hut 1.12

I've got a Tivo Slide bluetooth remote/dongle, which uses a fair number
of hid usages that aren't currently mapped in hid-input.c. I'd initially
written additions to hid-input.c with just this device in mind,
including some bits that were specific to the device. This go around,
I'm looking at adding/correcting as many generic HID usages from the HID
Usage Tables, version 1.12, as I can -- which also serves to enable all
but four of the buttons on the Tivo Slide remote[*].

Outside of fixing the obviously incorrect mapping of 0xc 0x45 from
KEY_RADIO to KEY_RIGHT, and making use of the new KEY_IMAGES (just added
in 2.6.39-rc4) for AL Image Browser instead of KEY_MEDIA, these are
purely additions, and thus should have no negative impact on any already
functional HID devices. Most of the added mappings seemed to be
perfectly logical to me, but there were a few that were mapped on more
of an "I think this makes the most sense" basis.

[*] I'll handle the last four tivo buttons via an hid-tivo.c follow-up.

CC: Dmitry Torokhov <dmitry.torokhov@gmail.com>
CC: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-input.c