Changeset 5472

Show
Ignore:
Timestamp:
11/30/08 14:10:09 (5 years ago)
Author:
khali
Message:

Minor clean-up in i2c_probe.

Files:
1 modified

Legend:

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

    r5471 r5472  
    23922392{ 
    23932393        my ($file, $addr, $funcs) = @_; 
    2394         my $data = []; 
    23952394 
    23962395        if (($addr >= 0x50 && $addr <= 0x5F) 
     
    24032402                # protection address. 
    24042403                return 0 unless ($funcs & I2C_FUNC_SMBUS_READ_BYTE); 
    2405                 return i2c_smbus_access($file, SMBUS_READ, 0, SMBUS_BYTE, $data); 
     2404                return i2c_smbus_access($file, SMBUS_READ, 0, SMBUS_BYTE, []); 
    24062405        } else { 
    24072406                return 0 unless ($funcs & I2C_FUNC_SMBUS_QUICK); 
    2408                 return i2c_smbus_access($file, SMBUS_WRITE, 0, SMBUS_QUICK, $data); 
     2407                return i2c_smbus_access($file, SMBUS_WRITE, 0, SMBUS_QUICK, []); 
    24092408        } 
    24102409}