mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-24 20:21:43 +00:00
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:
1 parent
e9c0fce42a
commit
79adb8ba49
6 files changed
+27
-20
No files matched your search
@@ -211,10 +211,7 @@ static s32 amd756_access(struct i2c_adapter * adap, u16 addr,
|
||||
|
||||
/** TODO: Should I supporte the 10-bit transfers? */
|
||||
switch (size) {
|
||||
case I2C_SMBUS_PROC_CALL:
|
||||
pr_debug(DRV_NAME ": I2C_SMBUS_PROC_CALL not supported!\n");
|
||||
/* TODO: Well... It is supported, I'm just not sure what to do here... */
|
||||
return -1;
|
||||
/* TODO: proc call is supported, I'm just not sure what to do here... */
|
||||
case I2C_SMBUS_QUICK:
|
||||
outw_p(((addr & 0x7f) << 1) | (read_write & 0x01),
|
||||
SMB_HOST_ADDRESS);
|
||||
@@ -262,6 +259,10 @@ static s32 amd756_access(struct i2c_adapter * adap, u16 addr,
|
||||
}
|
||||
size = AMD756_BLOCK_DATA;
|
||||
break;
|
||||
default:
|
||||
printk
|
||||
(KERN_WARNING "i2c-amd756.o: Unsupported transaction %d\n", size);
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* How about enabling interrupts... */
|
||||
|
||||
Reference in new issue
Block a user