Show
Ignore:
Timestamp:
05/28/07 10:57:41 (8 years ago)
Author:
khali
Message:

Support and use the new I2C block read with variable length which will
be available in Linux kernel 2.6.23. Binary compatibility is guaranteed,
source code compatibility isn't, but the incompatibility will be
spotted quickly as the prototype of the helper function
i2c_smbus_read_i2c_block_data() changed. The only problem would be if
a program is calling i2c_smbus_access() directly. Hopefully this should
be a rare case. The py-smbus binding code is in this case and will be
adjusted soon.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/prog/dump/i2cdump.c

    r4335 r4417  
    317317                                for (res = 0; res < 256; res += i) { 
    318318                                        i = i2c_smbus_read_i2c_block_data(file, 
    319                                                 res, cblock + res); 
     319                                                res, 32, cblock + res); 
    320320                                        if (i <= 0) 
    321321                                                break;