Changeset 5459

Show
Ignore:
Timestamp:
11/30/08 09:00:51 (6 years ago)
Author:
khali
Message:

Fix initialize_modules_supported: filter out the special driver names,
normalize the real ones.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/prog/detect/sensors-detect

    r5458 r5459  
    21382138{ 
    21392139        foreach my $chip (@chip_ids) { 
    2140                 $modules_supported{$chip->{driver}}++; 
     2140                next if $chip->{driver} eq "to-be-written"; 
     2141                next if $chip->{driver} eq "not-a-sensor"; 
     2142                next if $chip->{driver} eq "use-isa-instead"; 
     2143 
     2144                my $normalized = $chip->{driver}; 
     2145                $normalized =~ tr/-/_/; 
     2146                $modules_supported{$normalized}++; 
    21412147        } 
    21422148}