From a704d321d40d5c26624d8ff0782ecb31c1530c54 Mon Sep 17 00:00:00 2001 From: Rudolf Marek Date: Thu, 18 Jan 2007 22:14:24 +0100 Subject: [PATCH] --- yaml --- r: 45526 b: refs/heads/master c: c92943152884e3777439ad40a40126f2e51b8ea8 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/hwmon/w83793.c | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 8acbf5b348cf..1e318840ffbf 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 46bed4dfe5f95f1fc8f68ead592a7e295bbbe01e +refs/heads/master: c92943152884e3777439ad40a40126f2e51b8ea8 diff --git a/trunk/drivers/hwmon/w83793.c b/trunk/drivers/hwmon/w83793.c index c2b7834ecaa9..7cadef8cd87d 100644 --- a/trunk/drivers/hwmon/w83793.c +++ b/trunk/drivers/hwmon/w83793.c @@ -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)