From: Jingoo Han Date: Sat, 1 Jun 2013 07:10:00 +0000 (+0100) Subject: iio: replace strict_strtoul() with kstrtoul() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ddeb64f36d2a1333927e273856d545767ee70a1c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/adc/max1363.c b/drivers/iio/adc/max1363.c index 9e6da72ad823..f148d00b83f7 100644 --- a/drivers/iio/adc/max1363.c +++ b/drivers/iio/adc/max1363.c @@ -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++) diff --git a/drivers/iio/trigger/iio-trig-sysfs.c b/drivers/iio/trigger/iio-trig-sysfs.c index b727bde8b7fe..effcd0ac98d8 100644 --- a/drivers/iio/trigger/iio-trig-sysfs.c +++ b/drivers/iio/trigger/iio-trig-sysfs.c @@ -34,7 +34,7 @@ static ssize_t iio_sysfs_trig_add(struct device *dev, int ret; unsigned long input; - ret = strict_strtoul(buf, 10, &input); + ret = kstrtoul(buf, 10, &input); if (ret) return ret; ret = iio_sysfs_trigger_probe(input); @@ -53,7 +53,7 @@ static ssize_t iio_sysfs_trig_remove(struct device *dev, int ret; unsigned long input; - ret = strict_strtoul(buf, 10, &input); + ret = kstrtoul(buf, 10, &input); if (ret) return ret; ret = iio_sysfs_trigger_remove(input);