diff options
Diffstat (limited to 'drivers/i2c/busses/i2c-amd756.c')
-rw-r--r-- | drivers/i2c/busses/i2c-amd756.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/i2c/busses/i2c-amd756.c b/drivers/i2c/busses/i2c-amd756.c index 3d5bcb65e9e0..f0baea62067d 100644 --- a/drivers/i2c/busses/i2c-amd756.c +++ b/drivers/i2c/busses/i2c-amd756.c | |||
@@ -200,12 +200,7 @@ static s32 amd756_access(struct i2c_adapter * adap, u16 addr, | |||
200 | int i, len; | 200 | int i, len; |
201 | int status; | 201 | int status; |
202 | 202 | ||
203 | /** TODO: Should I supporte the 10-bit transfers? */ | ||
204 | switch (size) { | 203 | switch (size) { |
205 | case I2C_SMBUS_PROC_CALL: | ||
206 | dev_dbg(&adap->dev, "I2C_SMBUS_PROC_CALL not supported!\n"); | ||
207 | /* TODO: Well... It is supported, I'm just not sure what to do here... */ | ||
208 | return -EOPNOTSUPP; | ||
209 | case I2C_SMBUS_QUICK: | 204 | case I2C_SMBUS_QUICK: |
210 | outw_p(((addr & 0x7f) << 1) | (read_write & 0x01), | 205 | outw_p(((addr & 0x7f) << 1) | (read_write & 0x01), |
211 | SMB_HOST_ADDRESS); | 206 | SMB_HOST_ADDRESS); |
@@ -252,6 +247,9 @@ static s32 amd756_access(struct i2c_adapter * adap, u16 addr, | |||
252 | } | 247 | } |
253 | size = AMD756_BLOCK_DATA; | 248 | size = AMD756_BLOCK_DATA; |
254 | break; | 249 | break; |
250 | default: | ||
251 | dev_warn(&adap->dev, "Unsupported transaction %d\n", size); | ||
252 | return -EOPNOTSUPP; | ||
255 | } | 253 | } |
256 | 254 | ||
257 | /* How about enabling interrupts... */ | 255 | /* How about enabling interrupts... */ |