Minor cleanups in sis5595_access, backported from Linux 2.6:

* Remove commented-out code.
* Remove a legacy comment.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5216 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2008-05-01 10:22:49 +00:00
1 parent 135fa09cb0
commit b097de4ba4
2 files changed
+2 -9

No files matched your search

+1
View File
@@ -5,6 +5,7 @@ SVN-HEAD
Library: Don't choke on unrecognized devices, part 2
Module i2c-i801: Drop broken I2C block read support
Module i2c-piix4: Minor cleanups (2.6 backport)
Module i2c-sis5595: Minor cleanups (2.6 backport)
Program sensors-detect: New device ID for the SMSC SCH5317
Add SMSC SCH5127 detection
Add National Semiconductor LM64 detection
+1 -9
View File
@@ -357,12 +357,6 @@ 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);
@@ -380,9 +374,7 @@ s32 sis5595_access(struct i2c_adapter * adap, u16 addr,
switch (size) {
case SIS5595_BYTE: /* Where is the result put? I assume here it is in
SMB_DATA but it might just as well be in the
SMB_CMD. No clue in the docs */
case SIS5595_BYTE:
case SIS5595_BYTE_DATA:
data->byte = sis5595_read(SMB_BYTE);
break;