2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 06:15:15 +00:00

Fix initialize_modules_supported: filter out the special driver names,

normalize the real ones.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5459 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2008-11-30 08:00:51 +00:00
parent 5ffcf09dce
commit 12576458a9

View File

@@ -2137,7 +2137,13 @@ sub load_module
sub initialize_modules_supported
{
foreach my $chip (@chip_ids) {
$modules_supported{$chip->{driver}}++;
next if $chip->{driver} eq "to-be-written";
next if $chip->{driver} eq "not-a-sensor";
next if $chip->{driver} eq "use-isa-instead";
my $normalized = $chip->{driver};
$normalized =~ tr/-/_/;
$modules_supported{$normalized}++;
}
}