aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/jc42.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/jc42.c')
-rw-r--r--drivers/hwmon/jc42.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/jc42.c b/drivers/hwmon/jc42.c
index 2d3d72805ff4..d8d88abb081c 100644
--- a/drivers/hwmon/jc42.c
+++ b/drivers/hwmon/jc42.c
@@ -309,7 +309,7 @@ static ssize_t set_##value(struct device *dev, \
309 struct jc42_data *data = i2c_get_clientdata(client); \ 309 struct jc42_data *data = i2c_get_clientdata(client); \
310 int err, ret = count; \ 310 int err, ret = count; \
311 long val; \ 311 long val; \
312 if (strict_strtol(buf, 10, &val) < 0) \ 312 if (kstrtol(buf, 10, &val) < 0) \
313 return -EINVAL; \ 313 return -EINVAL; \
314 mutex_lock(&data->update_lock); \ 314 mutex_lock(&data->update_lock); \
315 data->value = jc42_temp_to_reg(val, data->extended); \ 315 data->value = jc42_temp_to_reg(val, data->extended); \
@@ -337,7 +337,7 @@ static ssize_t set_temp_crit_hyst(struct device *dev,
337 int err; 337 int err;
338 int ret = count; 338 int ret = count;
339 339
340 if (strict_strtoul(buf, 10, &val) < 0) 340 if (kstrtoul(buf, 10, &val) < 0)
341 return -EINVAL; 341 return -EINVAL;
342 342
343 diff = jc42_temp_from_reg(data->temp_crit) - val; 343 diff = jc42_temp_from_reg(data->temp_crit) - val;