On Tue, Sep 23, 2003 at 06:45:36PM -0700, Philip Pokorny wrote: > In the following loop: > > + for (i=0; i < EEPROM_SIZE; i += I2C_SMBUS_I2C_BLOCK_MAX) > + if (i2c_smbus_read_i2c_block_data(client, i, data->data + i) != > I2C_SMBUS_I2C_BLOCK_MAX) > > Is it possible that EEPROM_SIZE might not be a multiple of the SMBus > block size? Is there a way to read less than a full block of data other > than a byte at a time? Probably, I left this alone from what used to be in the cvs tree. Now it looks like it's been changed. > Should EEPROM_SIZE be configurable? Or is the limitation that addresses > must be a single byte? I recall that being a problem when I wanted to > address the EEPROM memory included in one of the monitoring chip drivers > I wrote. I thought I remembered some mention of different sized eeproms. And yes, it could be made configurable if people need that in the future. thanks for taking a look at it. greg k-h