mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-21 19:51:45 +00:00
With the new dynamic chip features enumeration code, the sensors_proc_chips
and sensors_chip_features_list arrays tend to track the same information. So it's much more simple, and more efficient, to have a single array. I decided to keep sensors_proc_chips, because it already has memory management helpers. One nice side effect is that the arbitrary limit to the number of supported chips is now gone. Another one is that some of the memory leaks were fixed. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4510 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
32b1b71245
commit
92b5982180
5 files changed
+51
-64
No files matched your search
+1
-8
@@ -36,7 +36,7 @@ sensors_bus *sensors_config_busses = NULL;
|
||||
int sensors_config_busses_count = 0;
|
||||
int sensors_config_busses_max = 0;
|
||||
|
||||
sensors_chip_name *sensors_proc_chips = NULL;
|
||||
sensors_chip_features *sensors_proc_chips = NULL;
|
||||
int sensors_proc_chips_count = 0;
|
||||
int sensors_proc_chips_max = 0;
|
||||
|
||||
@@ -44,13 +44,6 @@ sensors_bus *sensors_proc_bus = NULL;
|
||||
int sensors_proc_bus_count = 0;
|
||||
int sensors_proc_bus_max = 0;
|
||||
|
||||
#define PLACEHOLDER_ELEMENTS {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}
|
||||
|
||||
sensors_chip_features sensors_chip_features_list[] = {
|
||||
PLACEHOLDER_ELEMENTS,
|
||||
{ { 0 } }
|
||||
};
|
||||
|
||||
static int sensors_substitute_chip(sensors_chip_name *name,int lineno);
|
||||
|
||||
/* Wow, this must be one of the ugliest functions I have ever written.
|
||||
|
||||
Reference in new issue
Block a user