Changeset 5262

Show
Ignore:
Timestamp:
05/24/08 08:56:33 (6 months ago)
Author:
khali
Message:

Coding style fixes.

Files:

Legend:

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

    r5261 r5262  
    43984398  } 
    43994399 
    4400   if ($vendor == 0x41) # Analog Devices 
    4401   { 
     4400  if ($vendor == 0x41) { # Analog Devices 
    44024401    return if i2c_smbus_read_byte_data($file, 0x3d) != 0x27; 
    44034402    return (8); 
     
    48334832 
    48344833  # Check unused bits 
    4835   if ($chip == 5) # LM84 
    4836   { 
     4834  if ($chip == 5) { # LM84 
    48374835    return if ($status & 0xab) != 0; 
    48384836    return if ($conf & 0x7f) != 0; 
    4839   } 
    4840   else 
    4841   { 
     4837  } else { 
    48424838    return if ($status & 0x03) != 0; 
    48434839    return if ($conf & 0x3f) != 0; 
     
    48494845  # discard the chip if any fail. Note that these checks are not done 
    48504846  # by the adm1021 driver. 
    4851   if ($chip == 2 || $chip == 5) 
    4852   { 
     4847  if ($chip == 2 || $chip == 5) { 
    48534848    my $lte = i2c_smbus_read_byte_data($file, 0x00); 
    48544849    my $rte = i2c_smbus_read_byte_data($file, 0x01); 
     
    48674862    return if ($lhi & 0x80) or ($rhi & 0x80); 
    48684863    # Low limits over high limits 
    4869     if ($chip != 5) # LM84 doesn't have low limits 
    4870     { 
     4864    if ($chip != 5) { # LM84 doesn't have low limits 
    48714865      $llo-=256 if ($llo & 0x80); 
    48724866      $rlo-=256 if ($rlo & 0x80);