Changeset 974

Show
Ignore:
Timestamp:
01/07/01 23:13:59 (8 years ago)
Author:
phil
Message:

(Phil) Documentation, further testing/debugging for the lm87 and osb4.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/CHANGES

    r966 r974  
    1818----------------------------------------------------------------------------- 
    1919 
    20 2.5.5 (2000????) 
     202.5.5 (2001????) 
    2121  NOTE: i2c 2.5.5 MUST BE be compiled and installed first. 
    2222  Chip modules (all): Update mutex definition (works now for new 2.2 kernels) 
     
    4242                   add adm1025 temp2; report temp limits correctly as 
    4343                   min/max or limit/hysteresis; print message if no 
    44                    sensors are found. 
     44                   sensors are found. Removed false errors from lm87 reads. 
    4545  Program sensors-detect: Add ds1621, mtp008 detection; 
    4646                          add ServerWorks detection 
  • lm-sensors/trunk/kernel/chips/lm87.c

    r963 r974  
    3939 
    4040 
    41 /*  Chip configuration settings.  These should be set to reflect 
    42 the HARDWARE configuration of your chip.  By default (read: when all  
    43 of these are left zero), this driver assumes that the configuration 
    44 is the same as National's defaults for the Channel Mode register. 
     41/* Chip configuration settings.  These should be set to reflect the 
     42HARDWARE configuration of your chip.  By default (read: when all of 
     43these are left commented out), this driver assumes that the 
     44configuration is the same as National's defaults for the Channel Mode 
     45register. 
    4546 
    4647Set to '1' the appropriate defines, as nessesary: 
     
    822823} 
    823824 
    824  
    825825void LM87_fan(struct i2c_client *client, int operation, int ctl_name, 
    826826                 int *nrels_mag, long *results) 
    827827{ 
    828828        struct LM87_data *data = client->data; 
    829         int nr = ctl_name - LM87_SYSCTL_FAN1; 
    830829 
    831830        if (operation == SENSORS_PROC_REAL_INFO) 
  • lm-sensors/trunk/prog/sensors/chips.c

    r963 r974  
    13001300             cur,min,max,alarms&LM87_ALARM_IN0?"ALARM":""); 
    13011301    } 
    1302   } else 
    1303     printf("ERROR: Can't get IN0 data!\n"); 
     1302  } 
    13041303  free_the_label(&label); 
    13051304  if (!sensors_get_label_and_valid(*name,SENSORS_LM87_IN1,&label,&valid) && 
     
    13241323             cur,min,max,alarms&LM87_ALARM_IN2?"ALARM":""); 
    13251324    } 
    1326   } else 
    1327     printf("ERROR: Can't get IN2 data!\n"); 
     1325  } 
    13281326  free_the_label(&label); 
    13291327  if (!sensors_get_label_and_valid(*name,SENSORS_LM87_IN3,&label,&valid) && 
     
    13601358             cur,min,max,alarms&LM87_ALARM_IN5?"ALARM":""); 
    13611359    } 
    1362   } else 
    1363     printf("ERROR: Can't get IN5 data!\n"); 
     1360  } 
    13641361  free_the_label(&label); 
    13651362  if (!sensors_get_label_and_valid(*name,SENSORS_LM87_AIN1,&label,&valid) && 
     
    13721369             cur,min,max,alarms&LM87_ALARM_FAN1?"ALARM":""); 
    13731370    } 
    1374   } else 
    1375     printf("ERROR: Can't get AIN1 data!\n"); 
     1371  } 
    13761372  free_the_label(&label); 
    13771373  if (!sensors_get_label_and_valid(*name,SENSORS_LM87_AIN2,&label,&valid) && 
     
    13841380             cur,min,max,alarms&LM87_ALARM_FAN2?"ALARM":""); 
    13851381    } 
    1386   } else 
    1387     printf("ERROR: Can't get AIN2 data!\n"); 
     1382  } 
    13881383  free_the_label(&label); 
    13891384 
     
    13971392             cur,min,fdiv, alarms&LM87_ALARM_FAN1?"ALARM":""); 
    13981393    } 
    1399   } else 
    1400     printf("ERROR: Can't get FAN1 data!\n"); 
     1394  } 
    14011395  free_the_label(&label); 
    14021396  if (!sensors_get_label_and_valid(*name,SENSORS_LM87_FAN2,&label,&valid) && 
     
    14091403             cur,min,fdiv, alarms&LM87_ALARM_FAN2 ?"ALARM":""); 
    14101404    } 
    1411   } else 
    1412     printf("ERROR: Can't get FAN2 data!\n"); 
     1405  } 
    14131406  free_the_label(&label); 
    14141407 
     
    14511444        alarms&LM87_ALARM_TEMP3_FAULT?" FAULT":""); 
    14521445    } 
    1453   } else 
    1454     printf("ERROR: Can't get TEMP3 data!\n"); 
     1446  } 
    14551447  free_the_label(&label); 
    14561448