mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-28 20:58:22 +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
@@ -351,10 +351,16 @@ s32 sis5595_access(struct i2c_adapter * adap, u16 addr,
|
||||
I2C_SMBUS_PROC_CALL) ? SIS5595_PROC_CALL :
|
||||
SIS5595_WORD_DATA;
|
||||
break;
|
||||
/*
|
||||
case I2C_SMBUS_BLOCK_DATA:
|
||||
printk("sis5595.o: Block data not yet implemented!\n");
|
||||
return -1;
|
||||
break;
|
||||
*/
|
||||
default:
|
||||
printk
|
||||
(KERN_WARNING "sis5595.o: Unsupported transaction %d\n", size);
|
||||
return -1;
|
||||
}
|
||||
|
||||
sis5595_write(SMB_CTL_LO, ((size & 0x0E)));
|
||||
|
||||
Reference in new issue
Block a user