HID: quirks: Set INCREMENT_USAGE_ON_DUPLICATE for all Saitek X52 devices
authorNirenjan Krishnan <nirenjan@gmail.com>
Mon, 31 Aug 2020 00:48:59 +0000 (17:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Sep 2020 11:55:36 +0000 (13:55 +0200)
commit38ce1ae8e2c8f318bba99f04e9bda47ff4085930
tree6cc361fb995a8478636de57a7555155dc714bcf6
parentd3a6cfff8e6a9b456d6285956012baa3037c5cc5
HID: quirks: Set INCREMENT_USAGE_ON_DUPLICATE for all Saitek X52 devices

[ Upstream commit 77df710ba633dfb6c65c65cf99ea9e084a1c9933 ]

The Saitek X52 family of joysticks has a pair of axes that were
originally (by the Windows driver) used as mouse pointer controls. The
corresponding usage page is the Game Controls page, which is not
recognized by the generic HID driver, and therefore, both axes get
mapped to ABS_MISC. The quirk makes the second axis get mapped to
ABS_MISC+1, and therefore made available separately.

One Saitek X52 device is already fixed. This patch fixes the other two
known devices with VID/PID 06a3:0255 and 06a3:0762.

Signed-off-by: Nirenjan Krishnan <nirenjan@gmail.com>
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