diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-08 16:39:24 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-08 16:39:24 -0500 |
commit | 6950d76c531671ec389e36183311826597951ac6 (patch) | |
tree | 58294fa8afd16e4bda41a9104f8a4f68f09a61ae /drivers/hwmon/jc42.c | |
parent | b7d845f8825b058b80e76320f573505afbf4a1fc (diff) | |
parent | 91c8eabef1b52ef12c49ddea14152aadd9830a35 (diff) |
Merge branch 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
* 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
max1111.c: fix checkpatch warning
hwmon: (lm75) fix checkpatch warnings
hwmon: (lm80) fix checkpatch messages
hwmon: replaced strict_str* with kstr*
hwmon: (lm75) fix checkpatch warning
hwmon: (lm75) added error handling
hwmon: (ltc4261) set data->valid to 0 if error
hwmon: (f75375s) Add support for F75387SG/RG
hwmon: (f75375s) Disable setting DC fan control mode for F75373
hwmon: (f75375s) Initialize pwmX_mode and pwmX_enable if there is no platform data
hwmon: (f75375s) Fix value range for PWM modes
hwmon: (f75375s) Use standard sysfs attribute names
hwmon: (f75375s) Fix checkpatch errors and warnings
hwmon: (pmbus/zl6100) Only instantiate external temperature sensor if enabled
hwmon: (pmbus/zl6100) Add support for Ericsson BMR45[0,1] and BMR46[2,3,4]
hwmon: (pmbus/zl6100) Add support for ZL2005
hwmon: (pmbus/adm1275) Validate device ID
Diffstat (limited to 'drivers/hwmon/jc42.c')
-rw-r--r-- | drivers/hwmon/jc42.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/jc42.c b/drivers/hwmon/jc42.c index 1a92951f4031..28c09eead36b 100644 --- a/drivers/hwmon/jc42.c +++ b/drivers/hwmon/jc42.c | |||
@@ -309,7 +309,7 @@ static ssize_t set_##value(struct device *dev, \ | |||
309 | struct jc42_data *data = i2c_get_clientdata(client); \ | 309 | struct jc42_data *data = i2c_get_clientdata(client); \ |
310 | int err, ret = count; \ | 310 | int err, ret = count; \ |
311 | long val; \ | 311 | long val; \ |
312 | if (strict_strtol(buf, 10, &val) < 0) \ | 312 | if (kstrtol(buf, 10, &val) < 0) \ |
313 | return -EINVAL; \ | 313 | return -EINVAL; \ |
314 | mutex_lock(&data->update_lock); \ | 314 | mutex_lock(&data->update_lock); \ |
315 | data->value = jc42_temp_to_reg(val, data->extended); \ | 315 | data->value = jc42_temp_to_reg(val, data->extended); \ |
@@ -337,7 +337,7 @@ static ssize_t set_temp_crit_hyst(struct device *dev, | |||
337 | int err; | 337 | int err; |
338 | int ret = count; | 338 | int ret = count; |
339 | 339 | ||
340 | if (strict_strtoul(buf, 10, &val) < 0) | 340 | if (kstrtoul(buf, 10, &val) < 0) |
341 | return -EINVAL; | 341 | return -EINVAL; |
342 | 342 | ||
343 | diff = jc42_temp_from_reg(data->temp_crit) - val; | 343 | diff = jc42_temp_from_reg(data->temp_crit) - val; |