Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223087
b: refs/heads/master
c: 8b0f184
h: refs/heads/master
i:
  223085: 49195ff
  223083: ebf81a0
  223079: f0de87f
  223071: 938ce5d
v: v3
  • Loading branch information
Gabriele Gorla authored and Jean Delvare committed Dec 8, 2010
1 parent ced21fc commit 381ba68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 52bc9802ce849d0d287cc5fe76d06b0daa3986ca
refs/heads/master: 8b0f1840a46449e1946fc88860ef3ec8d6b1c2c7
4 changes: 1 addition & 3 deletions trunk/drivers/hwmon/adm1026.c
Original file line number Diff line number Diff line change
Expand Up @@ -920,9 +920,7 @@ static ssize_t set_fan_div(struct device *dev, struct device_attribute *attr,

val = simple_strtol(buf, NULL, 10);
new_div = DIV_TO_REG(val);
if (new_div == 0) {
return -EINVAL;
}

mutex_lock(&data->update_lock);
orig_div = data->fan_div[nr];
data->fan_div[nr] = DIV_FROM_REG(new_div);
Expand Down

0 comments on commit 381ba68

Please sign in to comment.