2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 22:35:23 +00:00

Drop function get_feature_value, it wasn't adding much value.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4720 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2007-08-26 20:41:53 +00:00
parent 868fd8d093
commit 60b2bafabd

View File

@@ -84,13 +84,6 @@ void print_chip_raw(const sensors_chip_name *name)
} }
} }
static int get_feature_value(const sensors_chip_name *name,
const sensors_feature_data *feature,
double *val)
{
return sensors_get_value(name, feature->number, val);
}
static void sensors_get_available_features(const sensors_chip_name *name, static void sensors_get_available_features(const sensors_chip_name *name,
const sensors_feature_data *feature, const sensors_feature_data *feature,
int i, short *has_features, int i, short *has_features,
@@ -109,7 +102,7 @@ static void sensors_get_available_features(const sensors_chip_name *name,
return; return;
} }
if (get_feature_value(name, iter, &feature_vals[indx])) if (sensors_get_value(name, iter->number, &feature_vals[indx]))
printf("ERROR: Can't get %s data!\n", iter->name); printf("ERROR: Can't get %s data!\n", iter->name);
has_features[indx] = 1; has_features[indx] = 1;
@@ -177,7 +170,7 @@ static void print_generic_chip_temp(const sensors_chip_name *name,
return; return;
} }
if (get_feature_value(name, feature, &val)) { if (sensors_get_value(name, feature->number, &val)) {
printf("ERROR: Can't get %s data!\n", label); printf("ERROR: Can't get %s data!\n", label);
free(label); free(label);
return; return;
@@ -297,7 +290,7 @@ static void print_generic_chip_in(const sensors_chip_name *name,
return; return;
} }
if (get_feature_value(name, feature, &val)) { if (sensors_get_value(name, feature->number, &val)) {
printf("ERROR: Can't get %s data!\n", label); printf("ERROR: Can't get %s data!\n", label);
free(label); free(label);
return; return;
@@ -362,7 +355,7 @@ static void print_generic_chip_fan(const sensors_chip_name *name,
return; return;
} }
if (get_feature_value(name, feature, &val)) { if (sensors_get_value(name, feature->number, &val)) {
printf("ERROR: Can't get %s data!\n", label); printf("ERROR: Can't get %s data!\n", label);
free(label); free(label);
return; return;