Changeset 5263

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

Coding style fixes.

Files:

Legend:

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

    r5259 r5263  
    43454345  return if ($verstep & 0xf0) != 0x60; 
    43464346 
    4347   if ($vendor == 0x41) # Analog Devices 
    4348   { 
     4347  if ($vendor == 0x41) { # Analog Devices 
    43494348    return if i2c_smbus_read_byte_data($file, 0x3d) != 0x27; 
    43504349    return (8); 
    43514350  } 
    43524351 
    4353   if ($vendor == 0x5c) # SMSC 
    4354   { 
     4352  if ($vendor == 0x5c) { # SMSC 
    43554353    # Return undef if this is a SCH5027 
    43564354    return if $verstep >= 0x69 and 
     
    47874785 
    47884786  # Check unused bits 
    4789   if ($chip == 5) # LM84 
    4790   { 
     4787  if ($chip == 5) { # LM84 
    47914788    return if ($status & 0xab) != 0; 
    47924789    return if ($conf & 0x7f) != 0; 
    4793   } 
    4794   else 
    4795   { 
     4790  } else { 
    47964791    return if ($status & 0x03) != 0; 
    47974792    return if ($conf & 0x3f) != 0; 
     
    48034798  # discard the chip if any fail. Note that these checks are not done 
    48044799  # by the adm1021 driver. 
    4805   if ($chip == 2 || $chip == 5) 
    4806   { 
     4800  if ($chip == 2 || $chip == 5) { 
    48074801    my $lte = i2c_smbus_read_byte_data($file, 0x00); 
    48084802    my $rte = i2c_smbus_read_byte_data($file, 0x01); 
     
    48214815    return if ($lhi & 0x80) or ($rhi & 0x80); 
    48224816    # Low limits over high limits 
    4823     if ($chip != 5) # LM84 doesn't have low limits 
    4824     { 
     4817    if ($chip != 5) { # LM84 doesn't have low limits 
    48254818      $llo-=256 if ($llo & 0x80); 
    48264819      $rlo-=256 if ($rlo & 0x80);