Changeset 4757
- Timestamp:
- 09/05/07 10:13:15 (6 years ago)
- Location:
- lm-sensors/branches/lm-sensors-3.0.0
- Files:
-
- 7 modified
-
lib/access.c (modified) (2 diffs)
-
lib/data.h (modified) (1 diff)
-
lib/libsensors.3 (modified) (1 diff)
-
lib/sensors.h (modified) (2 diffs)
-
lib/sysfs.c (modified) (1 diff)
-
prog/sensord/sense.c (modified) (1 diff)
-
prog/sensors/chips.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/branches/lm-sensors-3.0.0/lib/access.c
r4736 r4757 239 239 main_feature->data.compute_mapping); 240 240 241 if (!(main_feature->data. mode& SENSORS_MODE_R))241 if (!(main_feature->data.flags & SENSORS_MODE_R)) 242 242 return -SENSORS_ERR_ACCESS_R; 243 243 for (chip = NULL; … … 286 286 main_feature->data.compute_mapping); 287 287 288 if (!(main_feature->data. mode& SENSORS_MODE_W))288 if (!(main_feature->data.flags & SENSORS_MODE_W)) 289 289 return -SENSORS_ERR_ACCESS_W; 290 290 for (chip = NULL; -
lm-sensors/branches/lm-sensors-3.0.0/lib/data.h
r4736 r4757 133 133 feature whose compute line will be inherited (a group could be fan and 134 134 fan_max, but not fan_div) 135 modeis a bitfield, its value is a combination of SENSORS_MODE_R (readable)135 flags is a bitfield, its value is a combination of SENSORS_MODE_R (readable) 136 136 and SENSORS_MODE_W (writable). 137 137 scaling is the number of decimal points to scale by. -
lm-sensors/branches/lm-sensors-3.0.0/lib/libsensors.3
r4733 r4757 116 116 int compute_mapping; 117 117 .br 118 int mode;118 unsigned int flags; 119 119 .br 120 120 } sensors_feature_data;\fP 121 121 .br 122 The modefield is a bitfield, its value is a combination of122 The flags field is a bitfield, its value is a combination of 123 123 SENSORS_MODE_R (readable) and SENSORS_MODE_W (writable). 124 124 -
lm-sensors/branches/lm-sensors-3.0.0/lib/sensors.h
r4736 r4757 113 113 *match, int *nr); 114 114 115 /* These defines are used in the modefield of sensors_feature_data */115 /* These defines are used in the flags field of sensors_feature_data */ 116 116 #define SENSORS_MODE_R 1 117 117 #define SENSORS_MODE_W 2 … … 165 165 int mapping; 166 166 int compute_mapping; 167 int mode;167 unsigned int flags; 168 168 } sensors_feature_data; 169 169 -
lm-sensors/branches/lm-sensors-3.0.0/lib/sysfs.c
r4744 r4757 154 154 155 155 if (attr->method & SYSFS_METHOD_SHOW) 156 feature.data. mode|= SENSORS_MODE_R;156 feature.data.flags |= SENSORS_MODE_R; 157 157 if (attr->method & SYSFS_METHOD_STORE) 158 feature.data. mode|= SENSORS_MODE_W;158 feature.data.flags |= SENSORS_MODE_W; 159 159 160 160 feature.scaling = get_type_scaling(type); -
lm-sensors/branches/lm-sensors-3.0.0/prog/sensord/sense.c
r4709 r4757 89 89 sensorLog (LOG_ERR, "Error getting sensor label: %s/%s", chip->prefix, sensor->name); 90 90 ret = 21; 91 } else if (!(sensor-> mode& SENSORS_MODE_R)) {91 } else if (!(sensor->flags & SENSORS_MODE_R)) { 92 92 sensorLog (LOG_INFO, "%s: %s", sensor->name, label); 93 93 } else if ((ret = sensors_get_value (chip, sensor->number, &value))) { -
lm-sensors/branches/lm-sensors-3.0.0/prog/sensors/chips.c
r4730 r4757 42 42 continue; 43 43 } 44 if (data-> mode& SENSORS_MODE_R) {44 if (data->flags & SENSORS_MODE_R) { 45 45 if (sensors_get_value(name, data->number, &val)) 46 46 printf("ERROR: Can't get feature `%s' data!\n",
