aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-sis630.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/i2c/busses/i2c-sis630.c')
-rw-r--r--drivers/i2c/busses/i2c-sis630.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/i2c/busses/i2c-sis630.c b/drivers/i2c/busses/i2c-sis630.c
index c4cc5eddf50d..d7e6ff3e0187 100644
--- a/drivers/i2c/busses/i2c-sis630.c
+++ b/drivers/i2c/busses/i2c-sis630.c
@@ -356,7 +356,8 @@ static s32 sis630_access(struct i2c_adapter *adap, u16 addr,
356 size = SIS630_BLOCK_DATA; 356 size = SIS630_BLOCK_DATA;
357 return sis630_block_data(adap, data, read_write); 357 return sis630_block_data(adap, data, read_write);
358 default: 358 default:
359 printk("Unsupported SMBus operation\n"); 359 dev_warn(&adap->dev, "Unsupported transaction %d\n",
360 size);
360 return -EOPNOTSUPP; 361 return -EOPNOTSUPP;
361 } 362 }
362 363
@@ -378,8 +379,6 @@ static s32 sis630_access(struct i2c_adapter *adap, u16 addr,
378 case SIS630_WORD_DATA: 379 case SIS630_WORD_DATA:
379 data->word = sis630_read(SMB_BYTE) + (sis630_read(SMB_BYTE + 1) << 8); 380 data->word = sis630_read(SMB_BYTE) + (sis630_read(SMB_BYTE + 1) << 8);
380 break; 381 break;
381 default:
382 return -EOPNOTSUPP;
383 } 382 }
384 383
385 return 0; 384 return 0;