mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-07 16:01:34 +00:00
fan div error in adm driver correction
Strange, I thought I had committed this one a few days ago... git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@635 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
939f9d40f1
commit
3f5c8939fd
1 file changed
+2
-2
@@ -710,11 +710,11 @@ void adm9240_fan_div(struct i2c_client *client, int operation, int ctl_name,
|
||||
old = adm9240_read_value(client,ADM9240_REG_VID_FAN_DIV);
|
||||
if (*nrels_mag >= 2) {
|
||||
data->fan_div[1] = DIV_TO_REG(results[1]);
|
||||
old = (old & 0xcf) | (data->fan_div[1] << 6);
|
||||
old = (old & 0x3f) | (data->fan_div[1] << 6);
|
||||
}
|
||||
if (*nrels_mag >= 1) {
|
||||
data->fan_div[0] = DIV_TO_REG(results[0]);
|
||||
old = (old & 0x3f) | (data->fan_div[0] << 4);
|
||||
old = (old & 0xcf) | (data->fan_div[0] << 4);
|
||||
adm9240_write_value(client,ADM9240_REG_VID_FAN_DIV,old);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user