aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/emc2103.c
diff options
context:
space:
mode:
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>2012-01-04 14:58:52 -0500
committerGuenter Roeck <guenter.roeck@ericsson.com>2012-01-05 11:19:34 -0500
commit179c4fdb565dd2157e5dfe89318b74868e3b523d (patch)
tree66c8b705260562df090a5061af2be9c80b71cd4b /drivers/hwmon/emc2103.c
parent24edc0a71badc13a9574b060e6a22e78339ac7a4 (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/emc2103.c')
-rw-r--r--drivers/hwmon/emc2103.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/hwmon/emc2103.c b/drivers/hwmon/emc2103.c
index af914ad93ece..848a2b0bc83f 100644
--- a/drivers/hwmon/emc2103.c
+++ b/drivers/hwmon/emc2103.c
@@ -244,7 +244,7 @@ static ssize_t set_temp_min(struct device *dev, struct device_attribute *da,
244 struct emc2103_data *data = i2c_get_clientdata(client); 244 struct emc2103_data *data = i2c_get_clientdata(client);
245 long val; 245 long val;
246 246
247 int result = strict_strtol(buf, 10, &val); 247 int result = kstrtol(buf, 10, &val);
248 if (result < 0) 248 if (result < 0)
249 return -EINVAL; 249 return -EINVAL;
250 250
@@ -268,7 +268,7 @@ static ssize_t set_temp_max(struct device *dev, struct device_attribute *da,
268 struct emc2103_data *data = i2c_get_clientdata(client); 268 struct emc2103_data *data = i2c_get_clientdata(client);
269 long val; 269 long val;
270 270
271 int result = strict_strtol(buf, 10, &val); 271 int result = kstrtol(buf, 10, &val);
272 if (result < 0) 272 if (result < 0)
273 return -EINVAL; 273 return -EINVAL;
274 274
@@ -314,7 +314,7 @@ static ssize_t set_fan_div(struct device *dev, struct device_attribute *da,
314 int new_range_bits, old_div = 8 / data->fan_multiplier; 314 int new_range_bits, old_div = 8 / data->fan_multiplier;
315 long new_div; 315 long new_div;
316 316
317 int status = strict_strtol(buf, 10, &new_div); 317 int status = kstrtol(buf, 10, &new_div);
318 if (status < 0) 318 if (status < 0)
319 return -EINVAL; 319 return -EINVAL;
320 320
@@ -388,7 +388,7 @@ static ssize_t set_fan_target(struct device *dev, struct device_attribute *da,
388 struct i2c_client *client = to_i2c_client(dev); 388 struct i2c_client *client = to_i2c_client(dev);
389 long rpm_target; 389 long rpm_target;
390 390
391 int result = strict_strtol(buf, 10, &rpm_target); 391 int result = kstrtol(buf, 10, &rpm_target);
392 if (result < 0) 392 if (result < 0)
393 return -EINVAL; 393 return -EINVAL;
394 394
@@ -434,7 +434,7 @@ static ssize_t set_pwm_enable(struct device *dev, struct device_attribute *da,
434 long new_value; 434 long new_value;
435 u8 conf_reg; 435 u8 conf_reg;
436 436
437 int result = strict_strtol(buf, 10, &new_value); 437 int result = kstrtol(buf, 10, &new_value);
438 if (result < 0) 438 if (result < 0)
439 return -EINVAL; 439 return -EINVAL;
440 440