HID: replace strict_strtoul() with kstrtoul()
[deliverable/linux.git] / drivers / hid / hid-magicmouse.c
index a8ce44296cfddaf34a486a7c78edde4836cd3115..a32f5a24b27ceadcdfe33e05a8fe9715eed4d38a 100644 (file)
@@ -19,7 +19,6 @@
 #include <linux/input/mt.h>
 #include <linux/module.h>
 #include <linux/slab.h>
-#include <linux/usb.h>
 
 #include "hid-ids.h"
 
@@ -37,7 +36,7 @@ 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) {
        unsigned long speed;
-       if (!val || strict_strtoul(val, 0, &speed) || speed > 63)
+       if (!val || kstrtoul(val, 0, &speed) || speed > 63)
                return -EINVAL;
        scroll_speed = speed;
        return 0;
This page took 0.026752 seconds and 5 git commands to generate.