check for invalid transaction type

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1778 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark D. Studebaker committed 2003-06-10 01:07:54 +00:00
1 parent e9c0fce42a
commit 79adb8ba49
6 files changed
+27 -20

No files matched your search

+4 -4
View File
@@ -339,10 +339,6 @@ s32 piix4_access(struct i2c_adapter * adap, u16 addr,
int i, len;
switch (size) {
case I2C_SMBUS_PROC_CALL:
printk
(KERN_ERR "i2c-piix4.o: I2C_SMBUS_PROC_CALL not supported!\n");
return -1;
case I2C_SMBUS_QUICK:
outb_p(((addr & 0x7f) << 1) | (read_write & 0x01),
SMBHSTADD);
@@ -390,6 +386,10 @@ s32 piix4_access(struct i2c_adapter * adap, u16 addr,
}
size = PIIX4_BLOCK_DATA;
break;
default:
printk
(KERN_WARNING "i2c-piix4.o: Unsupported transaction %d\n", size);
return -1;
}
outb_p((size & 0x1C) + (ENABLE_INT9 & 1), SMBHSTCNT);