Changeset 4276 for lm-sensors/trunk/kernel/chips/bmcsensors.c
- Timestamp:
- 01/02/07 19:35:41 (6 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/kernel/chips/bmcsensors.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/kernel/chips/bmcsensors.c
r3024 r4276 37 37 #define DEBUG 1 38 38 */ 39 40 static unsigned short normal_i2c[] = { SENSORS_I2C_END };41 static unsigned short normal_i2c_range[] = { SENSORS_I2C_END };42 static unsigned int normal_isa[] = { SENSORS_ISA_END };43 static unsigned int normal_isa_range[] = { SENSORS_ISA_END };44 45 SENSORS_INSMOD_1(bmcsensors);46 39 47 40 struct bmcsensors_data { … … 219 212 for(i = 0; i < length; i += 3) { 220 213 *to++ = *from & 0x3f; 221 *to++ = *from++ >> 6 | ((*from & 0xf) << 2); 222 *to++ = *from++ >> 4 | ((*from & 0x3) << 4); 214 *to++ = *from >> 6 | ((*(from+1) & 0xf) << 2); 215 from++; 216 *to++ = *from >> 4 | ((*(from+1) & 0x3) << 4); 217 from++; 223 218 *to++ = (*from++ >> 2) & 0x3f; 224 219 } … … 299 294 300 295 /* swap lim1/lim2 if m < 0 or function is 1/x (but not both!) */ 301 if( sd->m < 0 && sd->linear != 7 || sd->m >= 0 && sd->linear == 7) {296 if((sd->m < 0 && sd->linear != 7) || (sd->m >= 0 && sd->linear == 7)) { 302 297 tmp = sd->lim1; 303 298 sd->lim1 = sd->lim2;
