]> git.baikalelectronics.ru Git - kernel.git/commit
HID: ignore all non-LED usages in output fields in hid-input
authorJiri Kosina <jkosina@suse.cz>
Sat, 11 Aug 2007 21:39:42 +0000 (23:39 +0200)
committerJiri Kosina <jkosina@suse.cz>
Sun, 14 Oct 2007 11:40:01 +0000 (13:40 +0200)
commit25e8065ebe5b0111c9e752884009e6905cc2ee25
tree79c1a02a086874b2e777b7baecbbef0508fad126
parent5094f23c14165a3b1070101426831d0121d69550
HID: ignore all non-LED usages in output fields in hid-input

We have to ignore all non-LED usages in output fields if the
report descriptor of the device specifies any. If we don't do
so, the devices which contain the same usages both in input and
output reports with different parameters will mess things up. In
hid-input, we currently care only for the input usages, with exception
for LEDs. All other output usages should be properly handled by
appropriate force-feedback driver.

Fixes auto-calibration for Saitek Cyborg Evo Force joystick.

Reported-by: Renato Golin <rengolin@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-input.c