2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 06:15:15 +00:00

Rename struct sensors_feature_data to sensors_subfeature. This is a

first step towards a clean separation between main features and
subfeatures.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4832 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2007-09-23 12:02:22 +00:00
parent eba601a964
commit 79086fb7b8
10 changed files with 84 additions and 83 deletions

View File

@@ -31,7 +31,7 @@
void print_chip_raw(const sensors_chip_name *name)
{
int a, b;
const sensors_feature_data *feature, *sub;
const sensors_subfeature *feature, *sub;
char *label;
double val;
@@ -73,12 +73,12 @@ static void print_label(const char *label, int space)
}
static void sensors_get_available_features(const sensors_chip_name *name,
const sensors_feature_data *feature,
const sensors_subfeature *feature,
short *has_features,
double *feature_vals, int size,
int first_val)
{
const sensors_feature_data *iter;
const sensors_subfeature *iter;
int i = 0;
while ((iter = sensors_get_all_subfeatures(name, feature->number, &i))) {
@@ -103,7 +103,7 @@ static void sensors_get_available_features(const sensors_chip_name *name,
static int sensors_get_label_size(const sensors_chip_name *name)
{
int i;
const sensors_feature_data *iter;
const sensors_subfeature *iter;
char *label;
unsigned int max_size = 11; /* 11 as minumum label width */
@@ -143,7 +143,7 @@ static void print_temp_limits(double limit1, double limit2,
#define TEMP_FEATURE(x) has_features[x - SENSORS_FEATURE_TEMP - 1]
#define TEMP_FEATURE_VAL(x) feature_vals[x - SENSORS_FEATURE_TEMP - 1]
static void print_chip_temp(const sensors_chip_name *name,
const sensors_feature_data *feature,
const sensors_subfeature *feature,
int label_size)
{
double val, limit1, limit2;
@@ -281,7 +281,7 @@ static void print_chip_temp(const sensors_chip_name *name,
#define IN_FEATURE(x) has_features[x - SENSORS_FEATURE_IN - 1]
#define IN_FEATURE_VAL(x) feature_vals[x - SENSORS_FEATURE_IN - 1]
static void print_chip_in(const sensors_chip_name *name,
const sensors_feature_data *feature,
const sensors_subfeature *feature,
int label_size)
{
const int size = SENSORS_FEATURE_IN_MAX_ALARM - SENSORS_FEATURE_IN;
@@ -346,7 +346,7 @@ static void print_chip_in(const sensors_chip_name *name,
#define FAN_FEATURE(x) has_features[x - SENSORS_FEATURE_FAN - 1]
#define FAN_FEATURE_VAL(x) feature_vals[x - SENSORS_FEATURE_FAN - 1]
static void print_chip_fan(const sensors_chip_name *name,
const sensors_feature_data *feature,
const sensors_subfeature *feature,
int label_size)
{
char *label;
@@ -428,7 +428,7 @@ static void print_chip_beep_enable(const sensors_chip_name *name, int f_beep,
void print_chip(const sensors_chip_name *name)
{
const sensors_feature_data *feature;
const sensors_subfeature *feature;
int i, label_size;
label_size = sensors_get_label_size(name);