summaryrefslogtreecommitdiff
path: root/drivers/iio/trigger
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-06-01 11:10:00 +0400
committerJonathan Cameron <jic23@kernel.org>2013-06-04 21:29:49 +0400
commitddeb64f36d2a1333927e273856d545767ee70a1c (patch)
treed7548bca68ce1d9d2c3252662cacab0725928dbc /drivers/iio/trigger
parentb164935b38d64557a32892e7aa45e213e9d11ea8 (diff)
downloadlinux-ddeb64f36d2a1333927e273856d545767ee70a1c.tar.xz
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>
Diffstat (limited to 'drivers/iio/trigger')
-rw-r--r--drivers/iio/trigger/iio-trig-sysfs.c4
1 files changed, 2 insertions, 2 deletions
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);