]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/hid/hid-lg4ff.c
HID: hid-lg4ff: Identify Logitech gaming wheels in compatibility modes
authorMichal Malý <madcatxster@devoid-pointer.net>
Wed, 18 Feb 2015 16:59:20 +0000 (17:59 +0100)
committerJiri Kosina <jkosina@suse.cz>
Wed, 18 Feb 2015 20:14:53 +0000 (21:14 +0100)
commite7c234496d01c90a4b042d899a65e10f1f63ebc1
tree05c9a6e3b3ca1427e176f18376752dcaa519a566
parent870fd0f5df4e131467612cc46db46fc3b69fd706
HID: hid-lg4ff: Identify Logitech gaming wheels in compatibility modes

Identify Logitech gaming wheels in compatibility modes accordingly to Logitech
specifications.

Logitech specification contains a general method of identifying various
models of their gaming wheels while they are in "compatibility" mode.
This patch implements the method instead of checking against known
values of bcdDevice. Handling of the mode switch upon initialization is
also adjusted so that the driver does not have to go through the entire
initialization routine because the wheels are set to perform a USB
detach before they reappear in "native" mode.

Signed-off-by: Michal Malý <madcatxster@devoid-pointer.net>
Tested-by: Simon Wood <simon@mungewell.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-lg4ff.c