aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/pmbus/pmbus_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/pmbus/pmbus_core.c b/drivers/hwmon/pmbus/pmbus_core.c
index d89b33967a85..f571388d88fd 100644
--- a/drivers/hwmon/pmbus/pmbus_core.c
+++ b/drivers/hwmon/pmbus/pmbus_core.c
@@ -782,7 +782,7 @@ static ssize_t pmbus_set_sensor(struct device *dev,
782 int ret; 782 int ret;
783 u16 regval; 783 u16 regval;
784 784
785 if (strict_strtol(buf, 10, &val) < 0) 785 if (kstrtol(buf, 10, &val) < 0)
786 return -EINVAL; 786 return -EINVAL;
787 787
788 mutex_lock(&data->update_lock); 788 mutex_lock(&data->update_lock);