aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-sis96x.c
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2008-07-14 16:38:25 -0400
committerJean Delvare <khali@mahadeva.delvare>2008-07-14 16:38:25 -0400
commitac7fc4fb2b6a126af8d07f46500440c9641976cf (patch)
tree1ba7a6b229699f6d69cfe3f1bd74c020e952e16b /drivers/i2c/busses/i2c-sis96x.c
parentfa63cd56d2f09806169307d761e8f430e23bc09b (diff)
i2c: Consistently reject unsupported transactions
Many PC SMBus host controller drivers don't properly handle the case where they are requested to achieve a transaction they do not support. Update them so that the consistently print a warning message and return a single error value in this case. Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-sis96x.c')
-rw-r--r--drivers/i2c/busses/i2c-sis96x.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/i2c/busses/i2c-sis96x.c b/drivers/i2c/busses/i2c-sis96x.c
index 29757b2e11dd..cde8e5880368 100644
--- a/drivers/i2c/busses/i2c-sis96x.c
+++ b/drivers/i2c/busses/i2c-sis96x.c
@@ -201,14 +201,8 @@ static s32 sis96x_access(struct i2c_adapter * adap, u16 addr,
201 SIS96x_PROC_CALL : SIS96x_WORD_DATA); 201 SIS96x_PROC_CALL : SIS96x_WORD_DATA);
202 break; 202 break;
203 203
204 case I2C_SMBUS_BLOCK_DATA:
205 /* TO DO: */
206 dev_info(&adap->dev, "SMBus block not implemented!\n");
207 return -EOPNOTSUPP;
208 break;
209
210 default: 204 default:
211 dev_info(&adap->dev, "Unsupported SMBus operation\n"); 205 dev_warn(&adap->dev, "Unsupported transaction %d\n", size);
212 return -EOPNOTSUPP; 206 return -EOPNOTSUPP;
213 } 207 }
214 208