iio: 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: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:

committed by
Jonathan Cameron

parent
b164935b38
commit
ddeb64f36d
@@ -660,7 +660,7 @@ static ssize_t max1363_monitor_store_freq(struct device *dev,
|
||||
unsigned long val;
|
||||
bool found = false;
|
||||
|
||||
ret = strict_strtoul(buf, 10, &val);
|
||||
ret = kstrtoul(buf, 10, &val);
|
||||
if (ret)
|
||||
return -EINVAL;
|
||||
for (i = 0; i < ARRAY_SIZE(max1363_monitor_speeds); i++)
|
||||
|
Reference in New Issue
Block a user