mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-01 13:20:30 +00:00
correct functionality detection for i2c block
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1688 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
cf1876bb08
commit
3978a26e03
2 files changed
+2
-2
No files matched your search
@@ -280,7 +280,7 @@ void ddcmon_update_client(struct i2c_client *client)
|
||||
if ((jiffies - data->last_updated > 300 * HZ) ||
|
||||
(jiffies < data->last_updated) || !data->valid) {
|
||||
if (i2c_check_functionality(client->adapter,
|
||||
I2C_FUNC_SMBUS_READ_BLOCK_DATA))
|
||||
I2C_FUNC_SMBUS_READ_I2C_BLOCK))
|
||||
{
|
||||
for (i=0; i<DDCMON_SIZE; i+=I2C_SMBUS_I2C_BLOCK_MAX)
|
||||
if(i2c_smbus_read_i2c_block_data(client,
|
||||
|
||||
@@ -346,7 +346,7 @@ void eeprom_update_client(struct i2c_client *client)
|
||||
#endif
|
||||
|
||||
if (i2c_check_functionality(client->adapter,
|
||||
I2C_FUNC_SMBUS_READ_BLOCK_DATA))
|
||||
I2C_FUNC_SMBUS_READ_I2C_BLOCK))
|
||||
{
|
||||
for (i=0; i<EEPROM_SIZE; i+=I2C_SMBUS_I2C_BLOCK_MAX)
|
||||
if(i2c_smbus_read_i2c_block_data(client,
|
||||
|
||||
Reference in new issue
Block a user