HID: xinmo: fix for out of range for THT 2P arcade controller.
authorPeter Stein <peter@stuntstein.dk>
Fri, 17 Feb 2017 08:00:50 +0000 (00:00 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Dec 2017 13:23:40 +0000 (14:23 +0100)
commit347848e0bb9956e070f8cfdee63ef5b8bb09af52
tree552fb6bafffcc778ba44248125cdf3a31c7d629e
parentafa055f2a1d0ffcb51cc2b38eb610752c60fdb48
HID: xinmo: fix for out of range for THT 2P arcade controller.

[ Upstream commit 9257821c5a1dc57ef3a37f7cbcebaf548395c964 ]

There is a new clone of the XIN MO arcade controller which has same issue with
out of range like the original.  This fix will solve the issue where 2
directions on the joystick are not recognized by the new THT 2P arcade
controller with device ID 0x75e1.  In details the new device ID is added the
hid-id list and the hid-xinmo source code.

Signed-off-by: Peter Stein <peter@stuntstein.dk>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hid-core.c
drivers/hid/hid-ids.h
drivers/hid/hid-xinmo.c