summaryrefslogtreecommitdiff
path: root/lib/init.c
diff options
context:
space:
mode:
authorkhali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0>2009-02-15 17:19:03 +0000
committerkhali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0>2009-02-15 17:19:03 +0000
commitaa3bd5c7cd2836c9fcb285b11a4db6f6ba443135 (patch)
treebe63bb7ed4971b696c314c77a3f5d987cf843362 /lib/init.c
parent41da6fe1a2d349cebd263a4875b949608126951f (diff)
downloadlm-sensors-aa3bd5c7cd2836c9fcb285b11a4db6f6ba443135.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]);