Use complete chip names (prefix + bus + address) as the keys of

sensors_chip_features_list[]. Using only the prefix (as was done before)
makes it impossible to properly support multiple chips with the same prefix
but a different feature set.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4508 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2007-06-28 12:09:00 +00:00
1 parent 8fdfa3f19d
commit 063f4b91d4
6 files changed
+30 -35

No files matched your search

+2 -2
View File
@@ -44,11 +44,11 @@ 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}
#define PLACEHOLDER_ELEMENTS {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}
sensors_chip_features sensors_chip_features_list[] = {
PLACEHOLDER_ELEMENTS,
{ 0 }
{ { 0 } }
};
static int sensors_substitute_chip(sensors_chip_name *name,int lineno);