Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107299
b: refs/heads/master
c: 321c413
h: refs/heads/master
i:
  107297: 3807202
  107295: 861ac7a
v: v3
  • Loading branch information
Mark M. Hoffman committed Aug 1, 2008
1 parent 64ac597 commit 2927aae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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: 9d3e19afd35907bf58b205096cd33e97df8fb6a5
refs/heads/master: 321c4138573da888ca30a387e9973f690c217e9e
3 changes: 1 addition & 2 deletions trunk/drivers/hwmon/adt7473.c
Original file line number Diff line number Diff line change
Expand Up @@ -559,10 +559,9 @@ static ssize_t set_max_duty_at_crit(struct device *dev,
struct i2c_client *client = to_i2c_client(dev);
struct adt7473_data *data = i2c_get_clientdata(client);
int temp = simple_strtol(buf, NULL, 10);
temp = temp && 0xFF;

mutex_lock(&data->lock);
data->max_duty_at_overheat = temp;
data->max_duty_at_overheat = !!temp;
reg = i2c_smbus_read_byte_data(client, ADT7473_REG_CFG4);
if (temp)
reg |= ADT7473_CFG4_MAX_DUTY_AT_OVT;
Expand Down

0 comments on commit 2927aae

Please sign in to comment.