mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-28 12:40:42 +00:00
(mmh)
This patch moves the chip and bus lists from lib/proc.c to lib/data.c. The variables were already declared in lib/data.h. Motivation: when support for kernel 2.4.x becomes optional, lib/proc.c may not even be compiled into the library... but these variables are still needed. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3090 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
1e29d075db
commit
2c5441a2db
2 files changed
+8
-6
No files matched your search
@@ -36,6 +36,14 @@ sensors_bus *sensors_config_busses = NULL;
|
||||
int sensors_config_busses_count = 0;
|
||||
int sensors_config_busses_max = 0;
|
||||
|
||||
sensors_proc_chips_entry *sensors_proc_chips = NULL;
|
||||
int sensors_proc_chips_count = 0;
|
||||
int sensors_proc_chips_max = 0;
|
||||
|
||||
sensors_bus *sensors_proc_bus = NULL;
|
||||
int sensors_proc_bus_count = 0;
|
||||
int sensors_proc_bus_max = 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.
|
||||
|
||||
@@ -40,12 +40,6 @@
|
||||
|
||||
static char buf[BUF_LEN];
|
||||
|
||||
sensors_proc_chips_entry *sensors_proc_chips;
|
||||
int sensors_proc_chips_count, sensors_proc_chips_max;
|
||||
|
||||
sensors_bus *sensors_proc_bus;
|
||||
int sensors_proc_bus_count, sensors_proc_bus_max;
|
||||
|
||||
static int sensors_get_chip_id(sensors_chip_name name);
|
||||
|
||||
int foundsysfs=0;
|
||||
|
||||
Reference in new issue
Block a user