diff options
author | Michal Malý <madcatxster@devoid-pointer.net> | 2015-02-18 17:59:22 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2015-02-18 21:14:54 +0100 |
commit | a54dc7795efceb9a458457540c69450c995a2772 (patch) | |
tree | 7bd740caa1cb95b69a014f3630c24ca031a510ba /drivers/hid/hid-lg.c | |
parent | b96d23ec698fdc1fdf904e5547d9abb6354eef5c (diff) | |
download | lwn-a54dc7795efceb9a458457540c69450c995a2772.tar.gz lwn-a54dc7795efceb9a458457540c69450c995a2772.zip |
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-lg.c')
-rw-r--r-- | drivers/hid/hid-lg.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/hid/hid-lg.c b/drivers/hid/hid-lg.c index f91ff145db9a..b86c18e651ed 100644 --- a/drivers/hid/hid-lg.c +++ b/drivers/hid/hid-lg.c @@ -27,6 +27,7 @@ #include "usbhid/usbhid.h" #include "hid-ids.h" #include "hid-lg.h" +#include "hid-lg4ff.h" #define LG_RDESC 0x001 #define LG_BAD_RELATIVE_KEYS 0x002 @@ -818,4 +819,10 @@ static struct hid_driver lg_driver = { }; module_hid_driver(lg_driver); +#ifdef CONFIG_LOGIWHEELS_FF +int lg4ff_no_autoswitch = 0; +module_param_named(lg4ff_no_autoswitch, lg4ff_no_autoswitch, int, S_IRUGO); +MODULE_PARM_DESC(lg4ff_no_autoswitch, "Do not switch multimode wheels to their native mode automatically"); +#endif + MODULE_LICENSE("GPL"); |