Changeset 802

Show
Ignore:
Timestamp:
05/11/00 03:44:14 (9 years ago)
Author:
mds
Message:

(mds) add driver name for adm1025 detection.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/prog/detect/sensors-detect

    r784 r802  
    403403     { 
    404404       name => "Analog Devices ADM1025", 
    405 #       driver => "xxxxxxx", 
    406        i2c_addrs => [0x2c..0x2f], 
     405       driver => "adm1025", 
     406       i2c_addrs => [0x2c..0x2e], 
    407407       i2c_detect => sub { adm1025_detect 0, @_ } 
    408408     }, 
     
    16251625  return unless (i2c_smbus_read_byte_data($file,0x40) & 0x80) == 0x00; 
    16261626  return unless (i2c_smbus_read_byte_data($file,0x3f) & 0xc0) == 0xc0; 
    1627    
    16281627  return (8); 
    16291628} 
     
    16441643  my ($chip, $file,$addr) = @_; 
    16451644  $reg = i2c_smbus_read_byte_data($file,0x3e); 
    1646   return unless ($chip == 0 and $reg == 0x41); 
     1645  return unless ($reg == 0x41); 
    16471646  return unless (i2c_smbus_read_byte_data($file,0x40) & 0x80) == 0x00; 
    16481647  return unless (i2c_smbus_read_byte_data($file,0x3f) & 0xc0) == 0x20; 
    1649    
    16501648  return (8); 
    16511649}