Changeset 4154 for lm-sensors/trunk/kernel/chips/vt1211.c
- Timestamp:
- 09/07/06 21:51:25 (6 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/kernel/chips/vt1211.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/kernel/chips/vt1211.c
r3246 r4154 108 108 UCH5 in4 temp7 109 109 3.3V in5 110 -12V in6 not in vt1211111 110 */ 112 111 113 /* ins numbered 0- 6*/112 /* ins numbered 0-5 */ 114 113 #define VT1211_REG_IN_MAX(nr) ((nr)==0 ? 0x3d : 0x29 + ((nr) * 2)) 115 114 #define VT1211_REG_IN_MIN(nr) ((nr)==0 ? 0x3e : 0x2a + ((nr) * 2)) … … 141 140 #define VT1211_REG_TEMP2_CONFIG 0x4c 142 141 143 /* temps 1-7; voltages 0- 6*/142 /* temps 1-7; voltages 0-5 */ 144 143 #define ISTEMP(i, ch_config) ((i) == 1 ? 1 : \ 145 144 (i) == 3 ? 1 : \ … … 184 183 unsigned long last_updated; /* In jiffies */ 185 184 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 */ 189 188 u16 temp[7]; /* Register value 10 bit */ 190 189 u8 temp_over[7]; /* Register value */ … … 247 246 #define VT1211_SYSCTL_IN4 1004 248 247 #define VT1211_SYSCTL_IN5 1005 249 #define VT1211_SYSCTL_IN6 1006250 248 #define VT1211_SYSCTL_FAN1 1101 251 249 #define VT1211_SYSCTL_FAN2 1102 … … 273 271 #define VT1211_ALARM_FAN2 0x80 274 272 #define VT1211_ALARM_IN4 0x100 275 #define VT1211_ALARM_IN6 0x200276 273 #define VT1211_ALARM_TEMP2 0x800 277 274 #define VT1211_ALARM_CHAS 0x1000 … … 299 296 {VT1211_SYSCTL_IN5, "in5", NULL, 0, 0644, NULL, &i2c_proc_real, 300 297 &i2c_sysctl_real, NULL, &vt1211_in}, 301 /*302 datasheet says these are reserved303 {VT1211_SYSCTL_IN6, "in6", NULL, 0, 0644, NULL, &i2c_proc_real,304 &i2c_sysctl_real, NULL, &vt1211_in},305 */306 298 {VT1211_SYSCTL_TEMP1, "temp1", NULL, 0, 0644, NULL, 307 299 &i2c_proc_real, &i2c_sysctl_real, NULL, &vt1211_temp},
