]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita2892906a221fb9a687d0e3a69ad4c0403dde29b
tree05c9a6e3b3ca1427e176f18376752dcaa519a566
parent465efab925c8a8551da571407689f512a923a10a
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