diff options
author | Michal Malý <madcatxster@devoid-pointer.net> | 2015-02-18 16:59:22 (GMT) |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2015-02-18 20:14:54 (GMT) |
commit | a54dc7795efceb9a458457540c69450c995a2772 (patch) | |
tree | 7bd740caa1cb95b69a014f3630c24ca031a510ba /drivers/hid/hid-lg4ff.c | |
parent | b96d23ec698fdc1fdf904e5547d9abb6354eef5c (diff) | |
download | linux-a54dc7795efceb9a458457540c69450c995a2772.tar.xz |
HID: hid-lg4ff: Introduce a module parameter to disable automatic switch of compatibility mode
Introduce a module parameter to disable automatic switch of Logitech gaming
wheels from compatibility to native mode. This only applies to multimode wheels.
Signed-off-by: Michal Malý <madcatxster@devoid-pointer.net>
Tested-by: Simon Wood <simon@mungewell.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-lg4ff.c')
-rw-r--r-- | drivers/hid/hid-lg4ff.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/hid/hid-lg4ff.c b/drivers/hid/hid-lg4ff.c index a64a35e..dd30772 100644 --- a/drivers/hid/hid-lg4ff.c +++ b/drivers/hid/hid-lg4ff.c @@ -30,6 +30,7 @@ #include "usbhid/usbhid.h" #include "hid-lg.h" +#include "hid-lg4ff.h" #include "hid-ids.h" #define to_hid_device(pdev) container_of(pdev, struct hid_device, dev) @@ -803,7 +804,8 @@ static int lg4ff_handle_multimode_wheel(struct hid_device *hid, u16 *real_produc /* Switch from "Driving Force" mode to native mode automatically. * Otherwise keep the wheel in its current mode */ if (reported_product_id == USB_DEVICE_ID_LOGITECH_WHEEL && - reported_product_id != *real_product_id) { + reported_product_id != *real_product_id && + !lg4ff_no_autoswitch) { const struct lg4ff_compat_mode_switch *s; switch (*real_product_id) { |