hwmon: (pmbus) Replace strict_strtol with kstrtol
Guenter Roeck
maintainerPATCH 1/1 hwmon: (pmbus) Replace strict_strtol with kstrtol
strict_strtol is deprecated and results in a checkpatch warning. Replace it with kstrtol.
Signed-off-by Guenter Roeck <[email protected]>
--- drivers/hwmon/pmbus/pmbus_core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/hwmon/pmbus/pmbus_core.c +1 -1
@@ -781,7 +781,7 @@ static ssize_t pmbus_set_sensor(struct device *dev,int ret;u16 regval; -if (strict_strtol (buf,10 , &val) <0 ) +if (kstrtol (buf,10 , &val) <0 )return -EINVAL ;mutex_lock (&data->update_lock);
Signature · 7 lines
1.7.5.4 _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 13 lines · Guenter Roeck
strict_strtolis deprecated and results in a checkpatch warning. Replace it with kstrtol.Signed-off-by Guenter Roeck <[email protected]>--- drivers/hwmon/pmbus/pmbus_core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/hwmon/pmbus/pmbus_core.c +0
-0
drivers/hwmon/pmbus/pmbus_core.c static ssize_t pmbus_set_sensor(struct device *dev, · line 787
Quoted 8 lines
drivers/hwmon/pmbus/pmbus_core.c +1
-1@@ -781,7 +781,7 @@ static ssize_t pmbus_set_sensor(struct device *dev,int ret;u16 regval; -if (strict_strtol (buf,10 , &val) <0 ) +if (kstrtol (buf,10 , &val) <0 )return -EINVAL ;mutex_lock (&data->update_lock);
Obviously correct.
Acked-by Jean Delvare <[email protected]>
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors