From: Benjamin Tissoires Date: Thu, 13 Aug 2015 15:11:27 +0000 (-0400) Subject: HID: gembird: add new driver to fix Gembird JPD-DualForce 2 X-Git-Tag: omap-for-v4.3/fixes-rc1~125^2~2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=931830aa5c251e0803523213428f777a48bde254;p=pandora-kernel.git 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 Tested-by: Orivej Desh Signed-off-by: Benjamin Tissoires Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed