mirror of https://github.com/OpenIPC/firmware.git
14 lines
651 B
Diff
14 lines
651 B
Diff
diff -drupN a/drivers/hid/hid-magicmouse.c b/drivers/hid/hid-magicmouse.c
|
|
--- a/drivers/hid/hid-magicmouse.c 2018-08-06 17:23:04.000000000 +0300
|
|
+++ b/drivers/hid/hid-magicmouse.c 2022-06-12 05:28:14.000000000 +0300
|
|
@@ -34,7 +34,8 @@ module_param(emulate_scroll_wheel, bool,
|
|
MODULE_PARM_DESC(emulate_scroll_wheel, "Emulate a scroll wheel");
|
|
|
|
static unsigned int scroll_speed = 32;
|
|
-static int param_set_scroll_speed(const char *val, struct kernel_param *kp) {
|
|
+static int param_set_scroll_speed(const char *val,
|
|
+ const struct kernel_param *kp) {
|
|
unsigned long speed;
|
|
if (!val || kstrtoul(val, 0, &speed) || speed > 63)
|
|
return -EINVAL;
|