diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-19 15:53:16 +0900 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-07-23 16:05:46 +0200 |
commit | dfc450b55d6b9215da27c5dc2c5f3ca1865575a6 (patch) | |
tree | 29dc496996ac63de2f1c976890ee5999b86f7da2 /drivers/hid/hid-magicmouse.c | |
parent | bc197eedef1ae082ec662c64c3f4aa302821fb7a (diff) | |
download | linux-dfc450b55d6b9215da27c5dc2c5f3ca1865575a6.tar.gz linux-dfc450b55d6b9215da27c5dc2c5f3ca1865575a6.tar.bz2 linux-dfc450b55d6b9215da27c5dc2c5f3ca1865575a6.zip |
HID: replace strict_strtoul() with kstrtoul()
The usage of strict_strtoul() is not preferred, because
strict_strtoul() is obsolete. Thus, kstrtoul() should be
used.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-magicmouse.c')
-rw-r--r-- | drivers/hid/hid-magicmouse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-magicmouse.c b/drivers/hid/hid-magicmouse.c index 5bc37343eb22..a32f5a24b27c 100644 --- a/drivers/hid/hid-magicmouse.c +++ b/drivers/hid/hid-magicmouse.c @@ -36,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; |