Show
Ignore:
Timestamp:
09/07/06 21:51:25 (6 years ago)
Author:
khali
Message:

vt1211 fixes:
* No in6
* More inputs can be missing (depends on UCH config)

Files:
1 modified

Legend:

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

    r3246 r4154  
    108108        UCH5            in4             temp7 
    109109        3.3V            in5 
    110         -12V            in6                     not in vt1211 
    111110*/ 
    112111 
    113 /* ins numbered 0-6 */ 
     112/* ins numbered 0-5 */ 
    114113#define VT1211_REG_IN_MAX(nr) ((nr)==0 ? 0x3d : 0x29 + ((nr) * 2)) 
    115114#define VT1211_REG_IN_MIN(nr) ((nr)==0 ? 0x3e : 0x2a + ((nr) * 2)) 
     
    141140#define VT1211_REG_TEMP2_CONFIG 0x4c 
    142141 
    143 /* temps 1-7; voltages 0-6 */ 
     142/* temps 1-7; voltages 0-5 */ 
    144143#define ISTEMP(i, ch_config) ((i) == 1 ? 1 : \ 
    145144                              (i) == 3 ? 1 : \ 
     
    184183        unsigned long last_updated;     /* In jiffies */ 
    185184 
    186         u8 in[7];               /* Register value */ 
    187         u8 in_max[7];           /* Register value */ 
    188         u8 in_min[7];           /* Register value */ 
     185        u8 in[6];               /* Register value */ 
     186        u8 in_max[6];           /* Register value */ 
     187        u8 in_min[6];           /* Register value */ 
    189188        u16 temp[7];            /* Register value 10 bit */ 
    190189        u8 temp_over[7];        /* Register value */ 
     
    247246#define VT1211_SYSCTL_IN4 1004 
    248247#define VT1211_SYSCTL_IN5 1005 
    249 #define VT1211_SYSCTL_IN6 1006 
    250248#define VT1211_SYSCTL_FAN1 1101 
    251249#define VT1211_SYSCTL_FAN2 1102 
     
    273271#define VT1211_ALARM_FAN2 0x80 
    274272#define VT1211_ALARM_IN4 0x100 
    275 #define VT1211_ALARM_IN6 0x200 
    276273#define VT1211_ALARM_TEMP2 0x800 
    277274#define VT1211_ALARM_CHAS 0x1000 
     
    299296        {VT1211_SYSCTL_IN5, "in5", NULL, 0, 0644, NULL, &i2c_proc_real, 
    300297         &i2c_sysctl_real, NULL, &vt1211_in}, 
    301 /* 
    302     datasheet says these are reserved 
    303         {VT1211_SYSCTL_IN6, "in6", NULL, 0, 0644, NULL, &i2c_proc_real, 
    304          &i2c_sysctl_real, NULL, &vt1211_in}, 
    305 */ 
    306298        {VT1211_SYSCTL_TEMP1, "temp1", NULL, 0, 0644, NULL, 
    307299         &i2c_proc_real, &i2c_sysctl_real, NULL, &vt1211_temp},