]> www.infradead.org Git - users/dwmw2/linux.git/commit
HID: quirks: Set the INCREMENT_USAGE_ON_DUPLICATE quirk on Saitek X52
authorIstván Váradi <ivaradi@varadiistvan.hu>
Wed, 24 Jul 2019 18:09:18 +0000 (20:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Aug 2019 06:30:13 +0000 (08:30 +0200)
commitb6f61042d3c523cf77943a9f463e0542d94b010c
tree3a28847b65386f5f7c1d0567542a9be875390781
parent3055b274a1412fabd36395e880ceafad9f7f73c7
HID: quirks: Set the INCREMENT_USAGE_ON_DUPLICATE quirk on Saitek X52

[ Upstream commit 7bc74853fd61432ec59f812a40425bf6d8c986a4 ]

The Saitek X52 joystick has a pair of axes that are originally
(by the Windows driver) used as mouse pointer controls. The corresponding
usage->hid values are 0x50024 and 0x50026. Thus they are handled
as unknown axes and both get mapped to ABS_MISC. The quirk makes
the second axis to be mapped to ABS_MISC1 and thus made available
separately.

[jkosina@suse.cz: squashed two patches into one]
Signed-off-by: István Váradi <ivaradi@varadiistvan.hu>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-ids.h
drivers/hid/hid-quirks.c