aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/tmp401.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/tmp401.c')
-rw-r--r--drivers/hwmon/tmp401.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/hwmon/tmp401.c b/drivers/hwmon/tmp401.c
index ad8d535235c..8b9a77486d5 100644
--- a/drivers/hwmon/tmp401.c
+++ b/drivers/hwmon/tmp401.c
@@ -334,7 +334,7 @@ static ssize_t store_temp_min(struct device *dev, struct device_attribute
334 long val; 334 long val;
335 u16 reg; 335 u16 reg;
336 336
337 if (strict_strtol(buf, 10, &val)) 337 if (kstrtol(buf, 10, &val))
338 return -EINVAL; 338 return -EINVAL;
339 339
340 reg = tmp401_temp_to_register(val, data->config); 340 reg = tmp401_temp_to_register(val, data->config);
@@ -361,7 +361,7 @@ static ssize_t store_temp_max(struct device *dev, struct device_attribute
361 long val; 361 long val;
362 u16 reg; 362 u16 reg;
363 363
364 if (strict_strtol(buf, 10, &val)) 364 if (kstrtol(buf, 10, &val))
365 return -EINVAL; 365 return -EINVAL;
366 366
367 reg = tmp401_temp_to_register(val, data->config); 367 reg = tmp401_temp_to_register(val, data->config);
@@ -388,7 +388,7 @@ static ssize_t store_temp_crit(struct device *dev, struct device_attribute
388 long val; 388 long val;
389 u8 reg; 389 u8 reg;
390 390
391 if (strict_strtol(buf, 10, &val)) 391 if (kstrtol(buf, 10, &val))
392 return -EINVAL; 392 return -EINVAL;
393 393
394 reg = tmp401_crit_temp_to_register(val, data->config); 394 reg = tmp401_crit_temp_to_register(val, data->config);
@@ -413,7 +413,7 @@ static ssize_t store_temp_crit_hyst(struct device *dev, struct device_attribute
413 long val; 413 long val;
414 u8 reg; 414 u8 reg;
415 415
416 if (strict_strtol(buf, 10, &val)) 416 if (kstrtol(buf, 10, &val))
417 return -EINVAL; 417 return -EINVAL;
418 418
419 if (data->config & TMP401_CONFIG_RANGE) 419 if (data->config & TMP401_CONFIG_RANGE)
@@ -447,7 +447,7 @@ static ssize_t reset_temp_history(struct device *dev,
447{ 447{
448 long val; 448 long val;
449 449
450 if (strict_strtol(buf, 10, &val)) 450 if (kstrtol(buf, 10, &val))
451 return -EINVAL; 451 return -EINVAL;
452 452
453 if (val != 1) { 453 if (val != 1) {