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/asc7621.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/asc7621.c')
-rw-r--r-- | drivers/hwmon/asc7621.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/hwmon/asc7621.c b/drivers/hwmon/asc7621.c index d2596cec18b5..3efd32449982 100644 --- a/drivers/hwmon/asc7621.c +++ b/drivers/hwmon/asc7621.c | |||
@@ -188,7 +188,7 @@ static ssize_t store_u8(struct device *dev, struct device_attribute *attr, | |||
188 | SETUP_STORE_data_param(dev, attr); | 188 | SETUP_STORE_data_param(dev, attr); |
189 | long reqval; | 189 | long reqval; |
190 | 190 | ||
191 | if (strict_strtol(buf, 10, &reqval)) | 191 | if (kstrtol(buf, 10, &reqval)) |
192 | return -EINVAL; | 192 | return -EINVAL; |
193 | 193 | ||
194 | reqval = SENSORS_LIMIT(reqval, 0, 255); | 194 | reqval = SENSORS_LIMIT(reqval, 0, 255); |
@@ -221,7 +221,7 @@ static ssize_t store_bitmask(struct device *dev, | |||
221 | long reqval; | 221 | long reqval; |
222 | u8 currval; | 222 | u8 currval; |
223 | 223 | ||
224 | if (strict_strtol(buf, 10, &reqval)) | 224 | if (kstrtol(buf, 10, &reqval)) |
225 | return -EINVAL; | 225 | return -EINVAL; |
226 | 226 | ||
227 | reqval = SENSORS_LIMIT(reqval, 0, param->mask[0]); | 227 | reqval = SENSORS_LIMIT(reqval, 0, param->mask[0]); |
@@ -265,7 +265,7 @@ static ssize_t store_fan16(struct device *dev, | |||
265 | SETUP_STORE_data_param(dev, attr); | 265 | SETUP_STORE_data_param(dev, attr); |
266 | long reqval; | 266 | long reqval; |
267 | 267 | ||
268 | if (strict_strtol(buf, 10, &reqval)) | 268 | if (kstrtol(buf, 10, &reqval)) |
269 | return -EINVAL; | 269 | return -EINVAL; |
270 | 270 | ||
271 | /* If a minimum RPM of zero is requested, then we set the register to | 271 | /* If a minimum RPM of zero is requested, then we set the register to |
@@ -338,7 +338,7 @@ static ssize_t store_in8(struct device *dev, struct device_attribute *attr, | |||
338 | long reqval; | 338 | long reqval; |
339 | u8 nr = sda->index; | 339 | u8 nr = sda->index; |
340 | 340 | ||
341 | if (strict_strtol(buf, 10, &reqval)) | 341 | if (kstrtol(buf, 10, &reqval)) |
342 | return -EINVAL; | 342 | return -EINVAL; |
343 | 343 | ||
344 | reqval = SENSORS_LIMIT(reqval, 0, 0xffff); | 344 | reqval = SENSORS_LIMIT(reqval, 0, 0xffff); |
@@ -371,7 +371,7 @@ static ssize_t store_temp8(struct device *dev, | |||
371 | long reqval; | 371 | long reqval; |
372 | s8 temp; | 372 | s8 temp; |
373 | 373 | ||
374 | if (strict_strtol(buf, 10, &reqval)) | 374 | if (kstrtol(buf, 10, &reqval)) |
375 | return -EINVAL; | 375 | return -EINVAL; |
376 | 376 | ||
377 | reqval = SENSORS_LIMIT(reqval, -127000, 127000); | 377 | reqval = SENSORS_LIMIT(reqval, -127000, 127000); |
@@ -427,7 +427,7 @@ static ssize_t store_temp62(struct device *dev, | |||
427 | long reqval, i, f; | 427 | long reqval, i, f; |
428 | s8 temp; | 428 | s8 temp; |
429 | 429 | ||
430 | if (strict_strtol(buf, 10, &reqval)) | 430 | if (kstrtol(buf, 10, &reqval)) |
431 | return -EINVAL; | 431 | return -EINVAL; |
432 | 432 | ||
433 | reqval = SENSORS_LIMIT(reqval, -32000, 31750); | 433 | reqval = SENSORS_LIMIT(reqval, -32000, 31750); |
@@ -482,7 +482,7 @@ static ssize_t store_ap2_temp(struct device *dev, | |||
482 | int i; | 482 | int i; |
483 | u8 currval, newval = 0; | 483 | u8 currval, newval = 0; |
484 | 484 | ||
485 | if (strict_strtol(buf, 10, &reqval)) | 485 | if (kstrtol(buf, 10, &reqval)) |
486 | return -EINVAL; | 486 | return -EINVAL; |
487 | 487 | ||
488 | mutex_lock(&data->update_lock); | 488 | mutex_lock(&data->update_lock); |
@@ -538,7 +538,7 @@ static ssize_t store_pwm_ac(struct device *dev, | |||
538 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x03, | 538 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x03, |
539 | }; | 539 | }; |
540 | 540 | ||
541 | if (strict_strtoul(buf, 10, &reqval)) | 541 | if (kstrtoul(buf, 10, &reqval)) |
542 | return -EINVAL; | 542 | return -EINVAL; |
543 | 543 | ||
544 | if (reqval > 31) | 544 | if (reqval > 31) |
@@ -601,7 +601,7 @@ static ssize_t store_pwm_enable(struct device *dev, | |||
601 | long reqval; | 601 | long reqval; |
602 | u8 currval, config, altbit, newval, minoff = 255; | 602 | u8 currval, config, altbit, newval, minoff = 255; |
603 | 603 | ||
604 | if (strict_strtol(buf, 10, &reqval)) | 604 | if (kstrtol(buf, 10, &reqval)) |
605 | return -EINVAL; | 605 | return -EINVAL; |
606 | 606 | ||
607 | switch (reqval) { | 607 | switch (reqval) { |
@@ -675,7 +675,7 @@ static ssize_t store_pwm_freq(struct device *dev, | |||
675 | u8 currval, newval = 255; | 675 | u8 currval, newval = 255; |
676 | int i; | 676 | int i; |
677 | 677 | ||
678 | if (strict_strtoul(buf, 10, &reqval)) | 678 | if (kstrtoul(buf, 10, &reqval)) |
679 | return -EINVAL; | 679 | return -EINVAL; |
680 | 680 | ||
681 | for (i = 0; i < ARRAY_SIZE(asc7621_pwm_freq_map); i++) { | 681 | for (i = 0; i < ARRAY_SIZE(asc7621_pwm_freq_map); i++) { |
@@ -724,7 +724,7 @@ static ssize_t store_pwm_ast(struct device *dev, | |||
724 | u8 currval, newval = 255; | 724 | u8 currval, newval = 255; |
725 | u32 i; | 725 | u32 i; |
726 | 726 | ||
727 | if (strict_strtol(buf, 10, &reqval)) | 727 | if (kstrtol(buf, 10, &reqval)) |
728 | return -EINVAL; | 728 | return -EINVAL; |
729 | 729 | ||
730 | for (i = 0; i < ARRAY_SIZE(asc7621_pwm_auto_spinup_map); i++) { | 730 | for (i = 0; i < ARRAY_SIZE(asc7621_pwm_auto_spinup_map); i++) { |
@@ -771,7 +771,7 @@ static ssize_t store_temp_st(struct device *dev, | |||
771 | u8 currval, newval = 255; | 771 | u8 currval, newval = 255; |
772 | u32 i; | 772 | u32 i; |
773 | 773 | ||
774 | if (strict_strtol(buf, 10, &reqval)) | 774 | if (kstrtol(buf, 10, &reqval)) |
775 | return -EINVAL; | 775 | return -EINVAL; |
776 | 776 | ||
777 | for (i = 0; i < ARRAY_SIZE(asc7621_temp_smoothing_time_map); i++) { | 777 | for (i = 0; i < ARRAY_SIZE(asc7621_temp_smoothing_time_map); i++) { |