mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-25 20:28:21 +00:00
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
This commit is contained in:
1 parent
a29f126e08
commit
ff0bfc174d
3 files changed
+5
-2
No files matched your search
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user