diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-06-01 03:10:00 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-06-04 13:29:49 -0400 |
commit | ddeb64f36d2a1333927e273856d545767ee70a1c (patch) | |
tree | d7548bca68ce1d9d2c3252662cacab0725928dbc | |
parent | b164935b38d64557a32892e7aa45e213e9d11ea8 (diff) |
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>
-rw-r--r-- | drivers/iio/adc/max1363.c | 2 | ||||
-rw-r--r-- | drivers/iio/trigger/iio-trig-sysfs.c | 4 |
2 files changed, 3 insertions, 3 deletions
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, | |||
660 | unsigned long val; | 660 | unsigned long val; |
661 | bool found = false; | 661 | bool found = false; |
662 | 662 | ||
663 | ret = strict_strtoul(buf, 10, &val); | 663 | ret = kstrtoul(buf, 10, &val); |
664 | if (ret) | 664 | if (ret) |
665 | return -EINVAL; | 665 | return -EINVAL; |
666 | for (i = 0; i < ARRAY_SIZE(max1363_monitor_speeds); i++) | 666 | 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, | |||
34 | int ret; | 34 | int ret; |
35 | unsigned long input; | 35 | unsigned long input; |
36 | 36 | ||
37 | ret = strict_strtoul(buf, 10, &input); | 37 | ret = kstrtoul(buf, 10, &input); |
38 | if (ret) | 38 | if (ret) |
39 | return ret; | 39 | return ret; |
40 | ret = iio_sysfs_trigger_probe(input); | 40 | ret = iio_sysfs_trigger_probe(input); |
@@ -53,7 +53,7 @@ static ssize_t iio_sysfs_trig_remove(struct device *dev, | |||
53 | int ret; | 53 | int ret; |
54 | unsigned long input; | 54 | unsigned long input; |
55 | 55 | ||
56 | ret = strict_strtoul(buf, 10, &input); | 56 | ret = kstrtoul(buf, 10, &input); |
57 | if (ret) | 57 | if (ret) |
58 | return ret; | 58 | return ret; |
59 | ret = iio_sysfs_trigger_remove(input); | 59 | ret = iio_sysfs_trigger_remove(input); |