Changeset 5074

Show
Ignore:
Timestamp:
12/15/07 23:35:17 (1 year ago)
Author:
khali
Message:

Return the correct error code on I2C block read failure.

Files:

Legend:

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

    r5068 r5074  
    1515                          Print the asset tag 
    1616                          Fix the timestamp decoding 
     17  Program i2cdump: Fix I2C block mode error code 
    1718  Program pwmconfig: Better diagnostics in pwmdisable 
    1819                     Give the fans some time to spin up 
  • lm-sensors/trunk/prog/dump/i2cdump.c

    r4950 r5074  
    314314                                        i = i2c_smbus_read_i2c_block_data(file, 
    315315                                                res, 32, cblock + res); 
    316                                         if (i <= 0) 
     316                                        if (i <= 0) { 
     317                                                res = i; 
    317318                                                break; 
     319                                        } 
    318320                                } 
    319321                        }