mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-24 20:21:43 +00:00
Delete unused function sensors_get_sub_feature_by_type().
git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4598 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
867b8453f2
commit
e45b873981
1 file changed
-18
@@ -33,24 +33,6 @@ static int get_feature_value(const sensors_chip_name *name,
|
||||
return sensors_get_feature(*name, feature->number, val);
|
||||
}
|
||||
|
||||
static const sensors_feature_data*
|
||||
sensors_get_sub_feature_by_type(const sensors_chip_name *name,
|
||||
const sensors_feature_data *feature,
|
||||
int i, int j,
|
||||
enum sensors_feature_type type)
|
||||
{
|
||||
const sensors_feature_data *iter;
|
||||
|
||||
while((iter = sensors_get_all_features(*name, &i, &j)) &&
|
||||
iter->mapping != SENSORS_NO_MAPPING &&
|
||||
iter->mapping == feature->number) {
|
||||
if (sensors_feature_get_type(iter) == type)
|
||||
return iter;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void sensors_get_available_features(const sensors_chip_name *name,
|
||||
const sensors_feature_data *feature,
|
||||
int i, int j,
|
||||
|
||||
Reference in new issue
Block a user