diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-19 02:53:16 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-07-23 10:05:46 -0400 |
commit | dfc450b55d6b9215da27c5dc2c5f3ca1865575a6 (patch) | |
tree | 29dc496996ac63de2f1c976890ee5999b86f7da2 /drivers/hid/hid-roccat-arvo.c | |
parent | bc197eedef1ae082ec662c64c3f4aa302821fb7a (diff) |
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-roccat-arvo.c')
-rw-r--r-- | drivers/hid/hid-roccat-arvo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/hid/hid-roccat-arvo.c b/drivers/hid/hid-roccat-arvo.c index 327f9b8ed1f4..071ee9e2fd9f 100644 --- a/drivers/hid/hid-roccat-arvo.c +++ b/drivers/hid/hid-roccat-arvo.c | |||
@@ -59,7 +59,7 @@ static ssize_t arvo_sysfs_set_mode_key(struct device *dev, | |||
59 | unsigned long state; | 59 | unsigned long state; |
60 | int retval; | 60 | int retval; |
61 | 61 | ||
62 | retval = strict_strtoul(buf, 10, &state); | 62 | retval = kstrtoul(buf, 10, &state); |
63 | if (retval) | 63 | if (retval) |
64 | return retval; | 64 | return retval; |
65 | 65 | ||
@@ -107,7 +107,7 @@ static ssize_t arvo_sysfs_set_key_mask(struct device *dev, | |||
107 | unsigned long key_mask; | 107 | unsigned long key_mask; |
108 | int retval; | 108 | int retval; |
109 | 109 | ||
110 | retval = strict_strtoul(buf, 10, &key_mask); | 110 | retval = kstrtoul(buf, 10, &key_mask); |
111 | if (retval) | 111 | if (retval) |
112 | return retval; | 112 | return retval; |
113 | 113 | ||
@@ -159,7 +159,7 @@ static ssize_t arvo_sysfs_set_actual_profile(struct device *dev, | |||
159 | unsigned long profile; | 159 | unsigned long profile; |
160 | int retval; | 160 | int retval; |
161 | 161 | ||
162 | retval = strict_strtoul(buf, 10, &profile); | 162 | retval = kstrtoul(buf, 10, &profile); |
163 | if (retval) | 163 | if (retval) |
164 | return retval; | 164 | return retval; |
165 | 165 | ||