Changeset 2541
- Timestamp:
- 05/16/04 18:29:19 (9 years ago)
- Location:
- lm-sensors/trunk/kernel/chips
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/kernel/chips/ddcmon.c
r2445 r2541 230 230 new_client->flags = 0; 231 231 232 /* prevent 24RF08 corruption (just in case) */ 233 i2c_smbus_write_quick(new_client, 0); 234 232 235 /* Now, we do the remaining detection. */ 233 236 if (checksum) { 234 237 int cs = 0; 235 /* prevent 24RF08 corruption (just in case) */236 i2c_smbus_write_quick(new_client, 0);237 238 for (i = 0; i < 0x80; i++) 238 239 cs += i2c_smbus_read_byte_data(new_client, i); -
lm-sensors/trunk/kernel/chips/eeprom.c
r2445 r2541 209 209 new_client->flags = 0; 210 210 211 /* prevent 24RF08 corruption */ 212 i2c_smbus_write_quick(new_client, 0); 213 211 214 /* Now, we do the remaining detection. It is not there, unless you force 212 215 the checksum to work out. */ 213 216 if (checksum) { 214 217 int cs = 0; 215 /* prevent 24RF08 corruption */216 i2c_smbus_write_quick(new_client, 0);217 218 for (i = 0; i <= 0x3e; i++) 218 219 cs += i2c_smbus_read_byte_data(new_client, i);
