Changeset 4094
- Timestamp:
- 08/12/06 23:02:54 (7 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/prog/dump/i2cdump.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/prog/dump/i2cdump.c
r4080 r4094 291 291 /* See Winbond w83781d data sheet for bank details */ 292 292 if (bank && size != I2C_SMBUS_BLOCK_DATA) { 293 old_bank = i2c_smbus_read_byte_data(file, bankreg); 294 if (old_bank >= 0) 293 res = i2c_smbus_read_byte_data(file, bankreg); 294 if (res >= 0) { 295 old_bank = res; 295 296 res = i2c_smbus_write_byte_data(file, bankreg, 296 297 bank | (old_bank & 0xf0)); 297 if (old_bank < 0 || res < 0) { 298 } 299 if (res < 0) { 298 300 fprintf(stderr, "Error: Bank switching failed\n"); 299 301 exit(1);
