mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-30 13:00:30 +00:00
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
This commit is contained in:
1 parent
bfe337fe76
commit
96c914bfda
11 files changed
+160
-126
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user