Show
Ignore:
Timestamp:
07/05/10 18:53:59 (19 months ago)
Author:
khali
Message:

Let ISA-access and non-sensor devices take part in the confidence
comparison process. Otherwise, we might miss misdetections.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/prog/detect/sensors-detect

    r5847 r5848  
    30043004} 
    30053005 
     3006# Fake i2c drivers such as "not-a-sensor" or "use-isa-instead" have to be 
     3007# inserted so that confidence comparison can be performed. But then we have 
     3008# to filter them out so that the user doesn't get confused. 
     3009sub filter_out_fake_i2c_drivers 
     3010{ 
     3011        delete $chips_detected{"not-a-sensor"}; 
     3012        delete $chips_detected{"use-isa-instead"}; 
     3013} 
     3014 
    30063015# This adds a detection to the above structure. 
    30073016# $_[0]: chip driver 
     
    31903199                } 
    31913200                print ")\n"; 
    3192  
    3193                 return if ($chip->{driver} eq "not-a-sensor" 
    3194                         || $chip->{driver} eq "use-isa-instead"); 
    31953201 
    31963202                $new_hash = { 
     
    59875993                        scan_i2c_adapter($dev_nr, $by_default); 
    59885994                } 
     5995                filter_out_fake_i2c_drivers(); 
    59895996        } 
    59905997