Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45526
b: refs/heads/master
c: c929431
h: refs/heads/master
v: v3
  • Loading branch information
Rudolf Marek authored and Jean Delvare committed Jan 18, 2007
1 parent e0a9bea commit a704d32
Show file tree
Hide file tree
Showing 2 changed files with 15 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: 46bed4dfe5f95f1fc8f68ead592a7e295bbbe01e
refs/heads/master: c92943152884e3777439ad40a40126f2e51b8ea8
14 changes: 14 additions & 0 deletions trunk/drivers/hwmon/w83793.c
Original file line number Diff line number Diff line change
Expand Up @@ -1327,6 +1327,20 @@ static int w83793_detect(struct i2c_adapter *adapter, int address, int kind)
data->has_pwm |= 0x80;
}

tmp = w83793_read_value(client, W83793_REG_FANIN_SEL);
if ((tmp & 0x01) && (val & 0x08)) { /* fan 9, second location */
data->has_fan |= 0x100;
}
if ((tmp & 0x02) && (val & 0x10)) { /* fan 10, second location */
data->has_fan |= 0x200;
}
if ((tmp & 0x04) && (val & 0x20)) { /* fan 11, second location */
data->has_fan |= 0x400;
}
if ((tmp & 0x08) && (val & 0x40)) { /* fan 12, second location */
data->has_fan |= 0x800;
}

/* check the temp1-6 mode, ignore former AMDSI selected inputs */
tmp = w83793_read_value(client,W83793_REG_TEMP_MODE[0]);
if (tmp & 0x01)
Expand Down

0 comments on commit a704d32

Please sign in to comment.