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/lm95241.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/lm95241.c')
-rw-r--r-- | drivers/hwmon/lm95241.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/hwmon/lm95241.c b/drivers/hwmon/lm95241.c index 513901d592a9..70bca671e083 100644 --- a/drivers/hwmon/lm95241.c +++ b/drivers/hwmon/lm95241.c | |||
@@ -169,7 +169,7 @@ static ssize_t set_type(struct device *dev, struct device_attribute *attr, | |||
169 | int shift; | 169 | int shift; |
170 | u8 mask = to_sensor_dev_attr(attr)->index; | 170 | u8 mask = to_sensor_dev_attr(attr)->index; |
171 | 171 | ||
172 | if (strict_strtoul(buf, 10, &val) < 0) | 172 | if (kstrtoul(buf, 10, &val) < 0) |
173 | return -EINVAL; | 173 | return -EINVAL; |
174 | if (val != 1 && val != 2) | 174 | if (val != 1 && val != 2) |
175 | return -EINVAL; | 175 | return -EINVAL; |
@@ -216,7 +216,7 @@ static ssize_t set_min(struct device *dev, struct device_attribute *attr, | |||
216 | struct lm95241_data *data = i2c_get_clientdata(client); | 216 | struct lm95241_data *data = i2c_get_clientdata(client); |
217 | long val; | 217 | long val; |
218 | 218 | ||
219 | if (strict_strtol(buf, 10, &val) < 0) | 219 | if (kstrtol(buf, 10, &val) < 0) |
220 | return -EINVAL; | 220 | return -EINVAL; |
221 | if (val < -128000) | 221 | if (val < -128000) |
222 | return -EINVAL; | 222 | return -EINVAL; |
@@ -254,7 +254,7 @@ static ssize_t set_max(struct device *dev, struct device_attribute *attr, | |||
254 | struct lm95241_data *data = i2c_get_clientdata(client); | 254 | struct lm95241_data *data = i2c_get_clientdata(client); |
255 | long val; | 255 | long val; |
256 | 256 | ||
257 | if (strict_strtol(buf, 10, &val) < 0) | 257 | if (kstrtol(buf, 10, &val) < 0) |
258 | return -EINVAL; | 258 | return -EINVAL; |
259 | if (val >= 256000) | 259 | if (val >= 256000) |
260 | return -EINVAL; | 260 | return -EINVAL; |
@@ -290,7 +290,7 @@ static ssize_t set_interval(struct device *dev, struct device_attribute *attr, | |||
290 | struct lm95241_data *data = i2c_get_clientdata(client); | 290 | struct lm95241_data *data = i2c_get_clientdata(client); |
291 | unsigned long val; | 291 | unsigned long val; |
292 | 292 | ||
293 | if (strict_strtoul(buf, 10, &val) < 0) | 293 | if (kstrtoul(buf, 10, &val) < 0) |
294 | return -EINVAL; | 294 | return -EINVAL; |
295 | 295 | ||
296 | data->interval = val * HZ / 1000; | 296 | data->interval = val * HZ / 1000; |