summaryrefslogtreecommitdiff
path: root/lib/data.h
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2007-09-23 11:59:51 +0000
committerJean Delvare <khali@linux-fr.org>2007-09-23 11:59:51 +0000
commit08a686e3cc35992ffe6de3be3d085edb34517547 (patch)
tree69c6f0d3a53a7924550156909fe6af12257500f4 /lib/data.h
parent60b50b6cb96b982b640764d421ba0a13b2beb06d (diff)
downloadlm-sensors-git-08a686e3cc35992ffe6de3be3d085edb34517547.tar.gz
sensors_feature_data and sensors_chip_feature are now the exact
same structure, so we can get rid of the former for simpler code. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4830 7894878c-1315-0410-8ee3-d5d059ff63e0
Diffstat (limited to 'lib/data.h')
-rw-r--r--lib/data.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/lib/data.h b/lib/data.h
index cd1b6806..c6d47fdd 100644
--- a/lib/data.h
+++ b/lib/data.h
@@ -120,26 +120,10 @@ typedef struct sensors_bus {
int lineno;
} sensors_bus;
-/* Internal data about a single chip feature.
- name is the string name used to refer to this feature (both in config
- files and through user functions);
- number is the internal feature number, used in many functions to refer
- to this feature
- mapping is either SENSORS_NO_MAPPING if this is feature is the
- main element of category; or it is the number of a feature with which
- this feature is logically grouped (a group could be fan, fan_max and
- fan_div)
- flags is a bitfield, its value is a combination of SENSORS_MODE_R (readable),
- SENSORS_MODE_W (writable) and SENSORS_COMPUTE_MAPPING (affected by the
- computation rules of the main feature). */
-typedef struct sensors_chip_feature {
- sensors_feature_data data;
-} sensors_chip_feature;
-
/* Internal data about all features of a type of chip */
typedef struct sensors_chip_features {
struct sensors_chip_name chip;
- struct sensors_chip_feature *feature;
+ struct sensors_feature_data *feature;
int feature_count;
} sensors_chip_features;