Changeset 5848

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.

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r5846 r5848  
    1717                  Add support for ITE IT8721F 
    1818                  Fix Maxim MAX6690 support 
     19                  Fix handling of duplicate detections 
    1920 
    20213.1.2 (2010-02-02) 
  • 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