]> git.baikalelectronics.ru Git - kernel.git/commit
HID: proper LED-mapping for SpaceNavigator
authorSimon Budig <simon@budig.de>
Mon, 15 Jan 2007 16:28:47 +0000 (17:28 +0100)
committerJiri Kosina <jkosina@suse.cz>
Sun, 21 Jan 2007 21:17:53 +0000 (22:17 +0100)
commit660184db98f1c5135832322bf226375cc5f7bd02
tree77e2eb83d78f5102182858bf6016481cc1d799dc
parent815fe60a796728a7b27bd47ceeaabd27c9f9b56f
HID: proper LED-mapping for SpaceNavigator

This change introduces a mapping for LED indicators between the HID
specification and the Linux input subsystem. The previous code properly
mapped the LEDs relevant for Keyboards, but garbeled the remaining ones.
With this change all LED enums from the input system get mapped to more
or less equivalent LED numbers from the HID specification.

This patch also ensures that the unused bits in a HID report to the
device are zeroed out. This makes the 3Dconnexion SpaceNavigator fully
usable with the linux input system.

Signed-off-by: Simon Budig <simon@budig.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-core.c
drivers/hid/hid-input.c