Commit ddeb64f3 authored by Jingoo Han's avatar Jingoo Han Committed by Jonathan Cameron

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: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent b164935b
...@@ -660,7 +660,7 @@ static ssize_t max1363_monitor_store_freq(struct device *dev, ...@@ -660,7 +660,7 @@ static ssize_t max1363_monitor_store_freq(struct device *dev,
unsigned long val; unsigned long val;
bool found = false; bool found = false;
ret = strict_strtoul(buf, 10, &val); ret = kstrtoul(buf, 10, &val);
if (ret) if (ret)
return -EINVAL; return -EINVAL;
for (i = 0; i < ARRAY_SIZE(max1363_monitor_speeds); i++) for (i = 0; i < ARRAY_SIZE(max1363_monitor_speeds); i++)
......
...@@ -34,7 +34,7 @@ static ssize_t iio_sysfs_trig_add(struct device *dev, ...@@ -34,7 +34,7 @@ static ssize_t iio_sysfs_trig_add(struct device *dev,
int ret; int ret;
unsigned long input; unsigned long input;
ret = strict_strtoul(buf, 10, &input); ret = kstrtoul(buf, 10, &input);
if (ret) if (ret)
return ret; return ret;
ret = iio_sysfs_trigger_probe(input); ret = iio_sysfs_trigger_probe(input);
...@@ -53,7 +53,7 @@ static ssize_t iio_sysfs_trig_remove(struct device *dev, ...@@ -53,7 +53,7 @@ static ssize_t iio_sysfs_trig_remove(struct device *dev,
int ret; int ret;
unsigned long input; unsigned long input;
ret = strict_strtoul(buf, 10, &input); ret = kstrtoul(buf, 10, &input);
if (ret) if (ret)
return ret; return ret;
ret = iio_sysfs_trigger_remove(input); ret = iio_sysfs_trigger_remove(input);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment