Skip to content

Commit

Permalink
regulator: virtual: Replace strict_strtol with kstrtol
Browse files Browse the repository at this point in the history
strict_strtol is deprecated and results in a checkpatch warning.
Replace it with kstrtol.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Axel Lin authored and Mark Brown committed Apr 19, 2012
1 parent a67f7e6 commit 85960e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/regulator/virtual.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static ssize_t set_min_uV(struct device *dev, struct device_attribute *attr,
struct virtual_consumer_data *data = dev_get_drvdata(dev);
long val;

if (strict_strtol(buf, 10, &val) != 0)
if (kstrtol(buf, 10, &val) != 0)
return count;

mutex_lock(&data->lock);
Expand All @@ -147,7 +147,7 @@ static ssize_t set_max_uV(struct device *dev, struct device_attribute *attr,
struct virtual_consumer_data *data = dev_get_drvdata(dev);
long val;

if (strict_strtol(buf, 10, &val) != 0)
if (kstrtol(buf, 10, &val) != 0)
return count;

mutex_lock(&data->lock);
Expand All @@ -173,7 +173,7 @@ static ssize_t set_min_uA(struct device *dev, struct device_attribute *attr,
struct virtual_consumer_data *data = dev_get_drvdata(dev);
long val;

if (strict_strtol(buf, 10, &val) != 0)
if (kstrtol(buf, 10, &val) != 0)
return count;

mutex_lock(&data->lock);
Expand All @@ -199,7 +199,7 @@ static ssize_t set_max_uA(struct device *dev, struct device_attribute *attr,
struct virtual_consumer_data *data = dev_get_drvdata(dev);
long val;

if (strict_strtol(buf, 10, &val) != 0)
if (kstrtol(buf, 10, &val) != 0)
return count;

mutex_lock(&data->lock);
Expand Down

0 comments on commit 85960e7

Please sign in to comment.