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)
committerJiri Kosina <jkosina@suse.cz>
Mon, 31 Aug 2020 06:56:51 +0000 (08:56 +0200)
commit77df710ba633dfb6c65c65cf99ea9e084a1c9933
treed7b931b5526d86d1cb0b4d6f7b09e8451bf8bb2c
parent5b0545dc184442fa509a311b8c855370441ad5bc
HID: quirks: Set INCREMENT_USAGE_ON_DUPLICATE for all Saitek X52 devices

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>
drivers/hid/hid-ids.h
drivers/hid/hid-quirks.c