Changeset 1818
- Timestamp:
- 06/27/03 18:15:24 (10 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/kernel/busses/i2c-nforce2.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/kernel/busses/i2c-nforce2.c
r1803 r1818 146 146 { 147 147 struct nforce2_smbus *smbus = adap->algo_data; 148 unsigned char protocol, len, pec, temp; 148 unsigned char protocol, pec, temp; 149 unsigned char len = 0; /* to keep the compiler quiet */ 149 150 int timeout = 0; 150 151 int i; … … 277 278 278 279 case I2C_SMBUS_WORD_DATA: 279 case I2C_SMBUS_PROC_CALL:280 /* case I2C_SMBUS_PROC_CALL: not supported */ 280 281 data->word = inb_p(NVIDIA_SMB_DATA) | (inb_p(NVIDIA_SMB_DATA+1) << 8); 281 282 break; 282 283 283 284 case I2C_SMBUS_BLOCK_DATA: 284 case I2C_SMBUS_BLOCK_PROC_CALL:285 /* case I2C_SMBUS_BLOCK_PROC_CALL: not supported */ 285 286 len = inb_p(NVIDIA_SMB_BCNT); 286 287 len = min_t(u8, len, 32);
