Skip to content

Commit

Permalink
hwmon: (pmbus) 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.

Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
  • Loading branch information
Guenter Roeck authored and Guenter Roeck committed Mar 19, 2012
1 parent b3789a0 commit 0117c3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/pmbus/pmbus_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,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);
Expand Down

0 comments on commit 0117c3f

Please sign in to comment.