Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85960e7b authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

regulator: virtual: Replace strict_strtol with kstrtol



strict_strtol is deprecated and results in a checkpatch warning.
Replace it with kstrtol.

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent a67f7e6b
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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);
@@ -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);
@@ -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);
@@ -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);