Changeset 5487

Show
Ignore:
Timestamp:
12/01/08 14:44:12 (4 years ago)
Author:
khali
Message:

Refactor code in andigilog_detect.

Files:
1 modified

Legend:

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

    r5486 r5487  
    37783778        return if $mid != 0x61;         # Andigilog 
    37793779 
    3780         if ($chip == 0) { 
    3781                 return if $cid != 0x62; 
    3782                 return 5; 
    3783         } 
    3784         if ($chip == 1) { 
    3785                 return if $cid != 0x69; 
    3786                 return 5; 
    3787         } 
    3788         if ($chip == 2) { 
    3789                 return if $cid != 0x6C && $cid != 0x6D; 
    3790                 return 5; 
    3791         } 
     3780        return if $chip == 0 && $cid != 0x62; 
     3781        return if $chip == 1 && $cid != 0x69; 
     3782        return if $chip == 2 && ($cid != 0x6C && $cid != 0x6D); 
     3783        return 5; 
    37923784} 
    37933785