We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a9ca8f commit 8da6d21Copy full SHA for 8da6d21
drivers/hid/usbhid/hid-core.c
@@ -48,7 +48,7 @@
48
* Module parameters.
49
*/
50
51
-static unsigned int hid_mousepoll_interval = ~0;
+static unsigned int hid_mousepoll_interval;
52
module_param_named(mousepoll, hid_mousepoll_interval, uint, 0644);
53
MODULE_PARM_DESC(mousepoll, "Polling interval of mice");
54
@@ -1098,9 +1098,7 @@ static int usbhid_start(struct hid_device *hid)
1098
/* Change the polling interval of mice and joysticks. */
1099
switch (hid->collection->usage) {
1100
case HID_GD_MOUSE:
1101
- if (hid_mousepoll_interval == ~0 && interval < 16)
1102
- interval = 16;
1103
- else if (hid_mousepoll_interval != ~0 && hid_mousepoll_interval != 0)
+ if (hid_mousepoll_interval > 0)
1104
interval = hid_mousepoll_interval;
1105
break;
1106
case HID_GD_JOYSTICK:
0 commit comments