summaryrefslogtreecommitdiff
path: root/lib/init.c
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2009-02-15 17:19:03 +0000
committerJean Delvare <khali@linux-fr.org>2009-02-15 17:19:03 +0000
commit3ea4545611b6022e536782f07435966cf91603d0 (patch)
treebe63bb7ed4971b696c314c77a3f5d987cf843362 /lib/init.c
parentd5bead602534bcb59a09debf4f6546915219ca52 (diff)
downloadlm-sensors-git-3ea4545611b6022e536782f07435966cf91603d0.tar.gz
Make it possible to only substitute the bus number of a subset of the
chip entries. This is a prerequisite to add support for multiple configuration files. Each configuration file can come with its own bus statements and the bus number substitution should only affect chip entries from the same configuration file. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5646 7894878c-1315-0410-8ee3-d5d059ff63e0
Diffstat (limited to 'lib/init.c')
-rw-r--r--lib/init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/init.c b/lib/init.c
index 71af5aff..f1126dac 100644
--- a/lib/init.c
+++ b/lib/init.c
@@ -240,6 +240,7 @@ void sensors_cleanup(void)
free(sensors_config_chips);
sensors_config_chips = NULL;
sensors_config_chips_count = sensors_config_chips_max = 0;
+ sensors_config_chips_subst = 0;
for (i = 0; i < sensors_proc_bus_count; i++)
free_bus(&sensors_proc_bus[i]);