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:
@@ -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}++;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user