HID: quirks: Set INCREMENT_USAGE_ON_DUPLICATE for all Saitek X52 devices
commit52fa4a63ab146d7aba2c086db0b4c372295fad8e
authorNirenjan Krishnan <nirenjan@gmail.com>
Mon, 31 Aug 2020 00:48:59 +0000 (30 17:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Sep 2020 11:47:48 +0000 (17 13:47 +0200)
tree014d29b329d186e311d8dde9c91cec35845b07e1
parent9eef311eb5244fa629fbc32dcad790f3457af008
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