diff options
author | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2012-01-04 14:58:52 -0500 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2012-01-05 11:19:34 -0500 |
commit | 179c4fdb565dd2157e5dfe89318b74868e3b523d (patch) | |
tree | 66c8b705260562df090a5061af2be9c80b71cd4b /drivers/hwmon/tmp401.c | |
parent | 24edc0a71badc13a9574b060e6a22e78339ac7a4 (diff) |
hwmon: replaced strict_str* with kstr*
replaced strict_strtol with kstrtol and
replaced strict_strtuol with kstrtuol
This satisfies checkpatch -f
Compile tested only: no warnings or errors given
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'drivers/hwmon/tmp401.c')
-rw-r--r-- | drivers/hwmon/tmp401.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/hwmon/tmp401.c b/drivers/hwmon/tmp401.c index ad8d535235c5..8b9a77486d57 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) { |