[PATCH 2/2] staging: iio: light: tsl2583.c: obsolete use of strict_strtoul
Johannes Tenschert
Johannes.Tenschert at informatik.stud.uni-erlangen.de
Mon Dec 12 14:35:03 UTC 2011
The function strict_strtoul is obsolete and replaced by kstrtoul.
Signed-off-by: Johannes Tenschert <Johannes.Tenschert at informatik.stud.uni-erlangen.de>
---
drivers/staging/iio/light/tsl2583.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/iio/light/tsl2583.c b/drivers/staging/iio/light/tsl2583.c
index 5b6455a..6a3040c 100644
--- a/drivers/staging/iio/light/tsl2583.c
+++ b/drivers/staging/iio/light/tsl2583.c
@@ -495,7 +495,7 @@ static ssize_t taos_power_state_store(struct device *dev,
struct iio_dev *indio_dev = dev_get_drvdata(dev);
unsigned long value;
- if (strict_strtoul(buf, 0, &value))
+ if (kstrtoul(buf, 0, &value))
return -EINVAL;
if (value == 0)
@@ -538,7 +538,7 @@ static ssize_t taos_gain_store(struct device *dev,
struct tsl2583_chip *chip = iio_priv(indio_dev);
unsigned long value;
- if (strict_strtoul(buf, 0, &value))
+ if (kstrtoul(buf, 0, &value))
return -EINVAL;
switch (value) {
@@ -584,7 +584,7 @@ static ssize_t taos_als_time_store(struct device *dev,
struct tsl2583_chip *chip = iio_priv(indio_dev);
unsigned long value;
- if (strict_strtoul(buf, 0, &value))
+ if (kstrtoul(buf, 0, &value))
return -EINVAL;
if ((value < 50) || (value > 650))
@@ -621,7 +621,7 @@ static ssize_t taos_als_trim_store(struct device *dev,
struct tsl2583_chip *chip = iio_priv(indio_dev);
unsigned long value;
- if (strict_strtoul(buf, 0, &value))
+ if (kstrtoul(buf, 0, &value))
return -EINVAL;
if (value)
@@ -646,7 +646,7 @@ static ssize_t taos_als_cal_target_store(struct device *dev,
struct tsl2583_chip *chip = iio_priv(indio_dev);
unsigned long value;
- if (strict_strtoul(buf, 0, &value))
+ if (kstrtoul(buf, 0, &value))
return -EINVAL;
if (value)
@@ -673,7 +673,7 @@ static ssize_t taos_do_calibrate(struct device *dev,
struct iio_dev *indio_dev = dev_get_drvdata(dev);
unsigned long value;
- if (strict_strtoul(buf, 0, &value))
+ if (kstrtoul(buf, 0, &value))
return -EINVAL;
if (value == 1)
--
1.7.5.4
More information about the devel
mailing list