Patch from Anton V. Staaf:

"(...) I found what I think is a bug in the it87_fan_div setting code.
(...) What was happening was that the check to make sure the third fan's
divisor was either 2 or 8 was using the wrong member of the it87 data
structure.  This was causing the if to never fail and thus always force
the divisor to 2."


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3200 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2005-11-21 20:07:02 +00:00
1 parent 9349904858
commit ae63690c60
1 file changed
+1 -1
+1 -1
View File
@@ -1019,7 +1019,7 @@ void it87_fan_div(struct i2c_client *client, int operation, int ctl_name,
old = it87_read_value(client, IT87_REG_FAN_DIV);
if (*nrels_mag >= 3) {
data->fan_div[2] = DIV_TO_REG(results[2]);
if( data->fan[2]!=3 ) {
if (data->fan_div[2] != 3) {
data->fan_div[2] = 1;
old = (old & 0xbf);
} else {