]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: quirks: Set INCREMENT_USAGE_ON_DUPLICATE for Saitek X65
authorNirenjan Krishnan <nirenjan@gmail.com>
Mon, 29 Mar 2021 16:10:02 +0000 (09:10 -0700)
committerSasha Levin <sashal@kernel.org>
Wed, 30 Jun 2021 12:48:10 +0000 (08:48 -0400)
commit00b16396ad26fbb725d13c305f1d6e372e44f9f5
tree7dcce3e88d625104b26aded8d7989556c4fc8fb9
parent5f728ec65485625e30f46e5b4917ff023ad29ea0
HID: quirks: Set INCREMENT_USAGE_ON_DUPLICATE for Saitek X65

[ Upstream commit 25bdbfbb2d8331a67824dd03d0087e9c98835f3a ]

The Saitek X65 joystick has a pair of axes that were used as mouse
pointer controls by the Windows driver. 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.

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