Changeset 4696

Show
Ignore:
Timestamp:
08/22/07 19:07:11 (6 years ago)
Author:
khali
Message:

Drop SENSORS_MODE_NO_RW and SENSORS_MODE_RW. The mode is a bitfield,
we typically set, or test for, a specific bit.

Location:
lm-sensors/branches/lm-sensors-3.0.0/lib
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/lib/data.h

    r4687 r4696  
    131131     feature whose compute line will be inherited (a group could be fan and 
    132132     fan_max, but not fan_div) 
    133    mode is SENSORS_MODE_NO_RW, SENSORS_MODE_R, SENSORS_MODE_W or 
    134      SENSORS_MODE_RW, for unaccessible, readable, writable, and both readable 
    135      and writable. 
     133   mode is a bitfield, its value is a combination of SENSORS_MODE_R (readable) 
     134     and SENSORS_MODE_W (writable). 
    136135   scaling is the number of decimal points to scale by. 
    137136     Divide the read value by 10**scaling to get the real value. */ 
  • lm-sensors/branches/lm-sensors-3.0.0/lib/libsensors.3

    r4695 r4696  
    122122} sensors_feature_data;\fP 
    123123.br 
    124 The mode field can be one of: 
    125 .br 
    126 SENSORS_MODE_NO_RW, SENSORS_MODE_R, SENSORS_MODE_W or SENSORS_MODE_RW. 
     124The mode field is a bitfield, its value is a combination of 
     125SENSORS_MODE_R (readable) and SENSORS_MODE_W (writable). 
    127126 
    128127\fBconst sensors_feature_data *sensors_get_all_features 
  • lm-sensors/branches/lm-sensors-3.0.0/lib/sensors.h

    r4695 r4696  
    117117 
    118118/* These defines are used in the mode field of sensors_feature_data */ 
    119 #define SENSORS_MODE_NO_RW 0 
    120119#define SENSORS_MODE_R 1 
    121120#define SENSORS_MODE_W 2 
    122 #define SENSORS_MODE_RW 3 
    123121 
    124122/* This define is used in the mapping field of sensors_feature_data if no