diff options
author | Jean Delvare <khali@linux-fr.org> | 2007-09-23 12:05:16 +0000 |
---|---|---|
committer | Jean Delvare <khali@linux-fr.org> | 2007-09-23 12:05:16 +0000 |
commit | 96c914bfdaefe98a0e342b999f4e006e77ae7bc1 (patch) | |
tree | 87fb1fd1c72a1bcdb041360f35299a8f1de731b7 /lib/data.h | |
parent | bfe337fe76aa796fae800b5c3f53b9b483d0efaf (diff) | |
download | lm-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |