Show
Ignore:
Timestamp:
12/16/00 20:28:09 (12 years ago)
Author:
mds
Message:

chg addr range to 2c-2e; fix fan min writes.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/kernel/chips/lm87.c

    r957 r958  
    4949/* Addresses to scan */ 
    5050static unsigned short normal_i2c[] = { SENSORS_I2C_END }; 
    51 static unsigned short normal_i2c_range[] = { 0x2c, 0x2f, SENSORS_I2C_END }; 
     51static unsigned short normal_i2c_range[] = { 0x2c, 0x2e, SENSORS_I2C_END }; 
    5252static unsigned int normal_isa[] = { SENSORS_ISA_END }; 
    5353static unsigned int normal_isa_range[] = { SENSORS_ISA_END }; 
     
    754754                                                   DIV_FROM_REG 
    755755                                                   (data->fan_div[nr-1])); 
    756                         lm87_write_value(client, LM87_REG_FAN2_AIN2_LIMIT, 
     756                        lm87_write_value(client, (nr == 2) ? 
     757                           LM87_REG_FAN2_AIN2_LIMIT : LM87_REG_FAN1_AIN1_LIMIT, 
    757758                                            data->fan_min[nr-1]); 
    758759                }