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/amc6821.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/amc6821.c')
-rw-r--r-- | drivers/hwmon/amc6821.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/hwmon/amc6821.c b/drivers/hwmon/amc6821.c index 4033974d1bb3..89a6b9da0ec3 100644 --- a/drivers/hwmon/amc6821.c +++ b/drivers/hwmon/amc6821.c | |||
@@ -238,7 +238,7 @@ static ssize_t set_temp( | |||
238 | int ix = to_sensor_dev_attr(attr)->index; | 238 | int ix = to_sensor_dev_attr(attr)->index; |
239 | long val; | 239 | long val; |
240 | 240 | ||
241 | int ret = strict_strtol(buf, 10, &val); | 241 | int ret = kstrtol(buf, 10, &val); |
242 | if (ret) | 242 | if (ret) |
243 | return ret; | 243 | return ret; |
244 | val = SENSORS_LIMIT(val / 1000, -128, 127); | 244 | val = SENSORS_LIMIT(val / 1000, -128, 127); |
@@ -327,7 +327,7 @@ static ssize_t set_pwm1( | |||
327 | struct i2c_client *client = to_i2c_client(dev); | 327 | struct i2c_client *client = to_i2c_client(dev); |
328 | struct amc6821_data *data = i2c_get_clientdata(client); | 328 | struct amc6821_data *data = i2c_get_clientdata(client); |
329 | long val; | 329 | long val; |
330 | int ret = strict_strtol(buf, 10, &val); | 330 | int ret = kstrtol(buf, 10, &val); |
331 | if (ret) | 331 | if (ret) |
332 | return ret; | 332 | return ret; |
333 | 333 | ||
@@ -356,7 +356,7 @@ static ssize_t set_pwm1_enable( | |||
356 | struct i2c_client *client = to_i2c_client(dev); | 356 | struct i2c_client *client = to_i2c_client(dev); |
357 | struct amc6821_data *data = i2c_get_clientdata(client); | 357 | struct amc6821_data *data = i2c_get_clientdata(client); |
358 | long val; | 358 | long val; |
359 | int config = strict_strtol(buf, 10, &val); | 359 | int config = kstrtol(buf, 10, &val); |
360 | if (config) | 360 | if (config) |
361 | return config; | 361 | return config; |
362 | 362 | ||
@@ -477,7 +477,7 @@ static ssize_t set_temp_auto_point_temp( | |||
477 | u8 reg; | 477 | u8 reg; |
478 | int dpwm; | 478 | int dpwm; |
479 | long val; | 479 | long val; |
480 | int ret = strict_strtol(buf, 10, &val); | 480 | int ret = kstrtol(buf, 10, &val); |
481 | if (ret) | 481 | if (ret) |
482 | return ret; | 482 | return ret; |
483 | 483 | ||
@@ -556,7 +556,7 @@ static ssize_t set_pwm1_auto_point_pwm( | |||
556 | struct amc6821_data *data = i2c_get_clientdata(client); | 556 | struct amc6821_data *data = i2c_get_clientdata(client); |
557 | int dpwm; | 557 | int dpwm; |
558 | long val; | 558 | long val; |
559 | int ret = strict_strtol(buf, 10, &val); | 559 | int ret = kstrtol(buf, 10, &val); |
560 | if (ret) | 560 | if (ret) |
561 | return ret; | 561 | return ret; |
562 | 562 | ||
@@ -623,7 +623,7 @@ static ssize_t set_fan( | |||
623 | struct amc6821_data *data = i2c_get_clientdata(client); | 623 | struct amc6821_data *data = i2c_get_clientdata(client); |
624 | long val; | 624 | long val; |
625 | int ix = to_sensor_dev_attr(attr)->index; | 625 | int ix = to_sensor_dev_attr(attr)->index; |
626 | int ret = strict_strtol(buf, 10, &val); | 626 | int ret = kstrtol(buf, 10, &val); |
627 | if (ret) | 627 | if (ret) |
628 | return ret; | 628 | return ret; |
629 | val = 1 > val ? 0xFFFF : 6000000/val; | 629 | val = 1 > val ? 0xFFFF : 6000000/val; |
@@ -665,7 +665,7 @@ static ssize_t set_fan1_div( | |||
665 | struct i2c_client *client = to_i2c_client(dev); | 665 | struct i2c_client *client = to_i2c_client(dev); |
666 | struct amc6821_data *data = i2c_get_clientdata(client); | 666 | struct amc6821_data *data = i2c_get_clientdata(client); |
667 | long val; | 667 | long val; |
668 | int config = strict_strtol(buf, 10, &val); | 668 | int config = kstrtol(buf, 10, &val); |
669 | if (config) | 669 | if (config) |
670 | return config; | 670 | return config; |
671 | 671 | ||