diff options
author | Jean Delvare <khali@linux-fr.org> | 2010-12-14 09:09:42 +0000 |
---|---|---|
committer | Jean Delvare <khali@linux-fr.org> | 2010-12-14 09:09:42 +0000 |
commit | ff0bfc174d873c201c6e7091a54685beb4f6b896 (patch) | |
tree | 9515ce2851dd638080bb4ab343bde19105bf137e /lib/sysfs.c | |
parent | a29f126e08402566d8eb15accafc6b8867703102 (diff) | |
download | lm-sensors-git-ff0bfc174d873c201c6e7091a54685beb4f6b896.tar.gz |
Compute MAX_*_SENSOR_TYPES at build time (#2378).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5897 7894878c-1315-0410-8ee3-d5d059ff63e0
Diffstat (limited to 'lib/sysfs.c')
-rw-r--r-- | lib/sysfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sysfs.c b/lib/sysfs.c index 3ad0e838..a0d619a6 100644 --- a/lib/sysfs.c +++ b/lib/sysfs.c @@ -136,8 +136,8 @@ static int sysfs_foreach_busdev(const char *bus_type, char sensors_sysfs_mount[NAME_MAX]; -#define MAX_MAIN_SENSOR_TYPES 6 -#define MAX_OTHER_SENSOR_TYPES 2 +#define MAX_MAIN_SENSOR_TYPES (SENSORS_FEATURE_MAX_MAIN - SENSORS_FEATURE_IN) +#define MAX_OTHER_SENSOR_TYPES (SENSORS_FEATURE_MAX_OTHER - SENSORS_FEATURE_VID) #define MAX_SENSORS_PER_TYPE 24 /* max_subfeatures is now computed dynamically */ #define FEATURE_SIZE (max_subfeatures * 2) |