Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280579
b: refs/heads/master
c: 5cd3222
h: refs/heads/master
i:
  280577: 93b25d2
  280575: cd71a68
v: v3
  • Loading branch information
Guenter Roeck committed Jan 5, 2012
1 parent 0c957a0 commit 66ed94a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b1b561a228de9796eff8c7e03e1e7ee63ab13115
refs/heads/master: 5cd3222a9f3742e3da6becbd1a939e1221e030c4
4 changes: 4 additions & 0 deletions trunk/drivers/hwmon/f75375s.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,10 @@ static ssize_t set_pwm_mode(struct device *dev, struct device_attribute *attr,
if (!(val == 0 || val == 1))
return -EINVAL;

/* F75373 does not support DC (linear voltage) fan control mode */
if (data->kind == f75373 && val == 0)
return -EINVAL;

mutex_lock(&data->update_lock);
conf = f75375_read8(client, F75375_REG_CONFIG1);
conf &= ~(1 << FAN_CTRL_LINEAR(nr));
Expand Down

0 comments on commit 66ed94a

Please sign in to comment.