]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
hid: quirk for multi-input devices with unneeded output reports
authorAnssi Hannula <anssi.hannula@gmail.com>
Thu, 11 Jan 2007 14:51:17 +0000 (16:51 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 5 Feb 2007 09:00:04 +0000 (10:00 +0100)
commit5556feae1c4e1cf2021b5fb2ef99973125de2250
treee63b32662f951018a6bc306911a0764904194798
parentc4146067fd7889bc6fab6cdfd8b2795d745a2156
hid: quirk for multi-input devices with unneeded output reports

Add new quirk HID_QUIRK_SKIP_OUTPUT_REPORTS to skip output reports
when enumerating reports on a hid-input device. Add this quirk and
HID_QUIRK_MULTI_INPUT to 0810:0001.

PantherLord Twin USB Joystick, 0810:0001 has separate input reports
for 2 distinct game controllers in the same interface, so it needs
HID_QUIRK_MULTI_INPUT. However, the device also contains one output
report per controller which is used to control the force feedback
function, and we do not want those to appear as separate input
devices as well. The simplest approach seems to be to add a quirk to
skip output reports on 0810:0001, and allow the force feedback
driver to handle those.

Signed-off-by: Anssi Hannula <anssi.hannula@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-input.c
drivers/usb/input/hid-core.c
include/linux/hid.h