HID: gembird: add new driver to fix Gembird JPD-DualForce 2
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Thu, 13 Aug 2015 15:11:27 +0000 (11:11 -0400)
committerJiri Kosina <jkosina@suse.cz>
Tue, 18 Aug 2015 13:03:43 +0000 (15:03 +0200)
commit931830aa5c251e0803523213428f777a48bde254
tree9a2ba7521c0d4153e51db6c141e03899c41f6f2f
parent7a834ba5e26e9e4afabf3cce9ca8cd1c6c3dce50
HID: gembird: add new driver to fix Gembird JPD-DualForce 2

This gamepad advertise 5 absolute axis while 4 are actually used.
The second Z axis shows some garbage, so it has to be ignored by HID.
The first Z axis and the Rz one are actually Rx and Ry. Remap them.

We could also just remap and ignore the axis in .input_mapping(). I
went ahead with .report_fixup() first, so here it is.

Reported-by: Orivej Desh <orivej@gmx.fr>
Tested-by: Orivej Desh <orivej@gmx.fr>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/Kconfig
drivers/hid/Makefile
drivers/hid/hid-core.c
drivers/hid/hid-gembird.c [new file with mode: 0644]
drivers/hid/hid-ids.h