HID: usbhid: Add a quirk for raphnet multi-gamepad adapters
authorRaphael Assenat <raph@raphnet.net>
Sat, 25 Apr 2015 20:30:32 +0000 (16:30 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 15 Sep 2017 17:29:58 +0000 (18:29 +0100)
commitaa18d7fe2393f73706977850db9a91c249e937e4
tree31cce53b906a7a7cde0a12c0eb4aaf8a3d861fa1
parent0bd0c217ceb02ecea18bd05d886b48dbfd24b0a4
HID: usbhid: Add a quirk for raphnet multi-gamepad adapters

commit d6ea2f88ac3659b799d8079a4fbda4f8faf6ff90 upstream.

The raphnet.net 4nes4snes and 2nes2snes multi-joystick adapters use a single
HID report descriptor with one report ID per controller. This has the effect
that the inputs of otherwise independent game controllers get packed in one
large joystick device.

With this patch each controller gets its own /dev/input/jsX device, which is
more natural and less confusing than having all inputs going to the same place.

Signed-off-by: Raphael Assenat <raph@raphnet.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/hid/hid-ids.h
drivers/hid/usbhid/hid-quirks.c