Changeset 3200

Show
Ignore:
Timestamp:
11/21/05 21:07:02 (3 years ago)
Author:
khali
Message:

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."

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/kernel/chips/it87.c

    r3154 r3200  
    10201020                if (*nrels_mag >= 3) { 
    10211021                        data->fan_div[2] = DIV_TO_REG(results[2]); 
    1022                         if( data->fan[2]!=3 ) { 
     1022                        if (data->fan_div[2] != 3) { 
    10231023                                data->fan_div[2] = 1; 
    10241024                                old = (old & 0xbf);