summaryrefslogtreecommitdiff
path: root/lib/data.h
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2007-09-23 12:05:16 +0000
committerJean Delvare <khali@linux-fr.org>2007-09-23 12:05:16 +0000
commit96c914bfdaefe98a0e342b999f4e006e77ae7bc1 (patch)
tree87fb1fd1c72a1bcdb041360f35299a8f1de731b7 /lib/data.h
parentbfe337fe76aa796fae800b5c3f53b9b483d0efaf (diff)
downloadlm-sensors-git-96c914bfdaefe98a0e342b999f4e006e77ae7bc1.tar.gz
Define a separate structure to represent main features. This allows
for faster main features lookup. One side effect of this change is that subfeatures can no longer have labels nor be ignored. I do not think that this is a problem in practice, and actually this makes a lot of sense. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4834 7894878c-1315-0410-8ee3-d5d059ff63e0
Diffstat (limited to 'lib/data.h')
-rw-r--r--lib/data.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/data.h b/lib/data.h
index 1de016ea..ec0d175d 100644
--- a/lib/data.h
+++ b/lib/data.h
@@ -123,7 +123,9 @@ typedef struct sensors_bus {
/* Internal data about all features of a type of chip */
typedef struct sensors_chip_features {
struct sensors_chip_name chip;
+ struct sensors_feature *feature;
struct sensors_subfeature *subfeature;
+ int feature_count;
int subfeature_count;
} sensors_chip_features;