Skip to content

Commit

Permalink
i2c-designware: Cosmetic cleanups
Browse files Browse the repository at this point in the history
Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi@necel.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
  • Loading branch information
Shinya Kuribayashi authored and Ben Dooks committed Dec 9, 2009
1 parent ce6eb57 commit a0e06ea
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions drivers/i2c/busses/i2c-designware.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Synopsys Designware I2C adapter driver (master only).
* Synopsys DesignWare I2C adapter driver (master only).
*
* Based on the TI DAVINCI I2C adapter driver.
*
Expand Down Expand Up @@ -145,27 +145,27 @@
DW_IC_TX_ABRT_GCALL_NOACK)

static char *abort_sources[] = {
[ABRT_7B_ADDR_NOACK] =
[ABRT_7B_ADDR_NOACK] =
"slave address not acknowledged (7bit mode)",
[ABRT_10ADDR1_NOACK] =
[ABRT_10ADDR1_NOACK] =
"first address byte not acknowledged (10bit mode)",
[ABRT_10ADDR2_NOACK] =
[ABRT_10ADDR2_NOACK] =
"second address byte not acknowledged (10bit mode)",
[ABRT_TXDATA_NOACK] =
[ABRT_TXDATA_NOACK] =
"data not acknowledged",
[ABRT_GCALL_NOACK] =
[ABRT_GCALL_NOACK] =
"no acknowledgement for a general call",
[ABRT_GCALL_READ] =
[ABRT_GCALL_READ] =
"read after general call",
[ABRT_SBYTE_ACKDET] =
[ABRT_SBYTE_ACKDET] =
"start byte acknowledged",
[ABRT_SBYTE_NORSTRT] =
[ABRT_SBYTE_NORSTRT] =
"trying to send start byte when restart is disabled",
[ABRT_10B_RD_NORSTRT] =
[ABRT_10B_RD_NORSTRT] =
"trying to read when restart is disabled (10bit mode)",
[ARB_MASTER_DIS] =
[ABRT_MASTER_DIS] =
"trying to use disabled adapter",
[ARB_LOST] =
[ARB_LOST] =
"lost arbitration",
};

Expand Down Expand Up @@ -394,7 +394,8 @@ i2c_dw_xfer_msg(struct dw_i2c_dev *dev)
intr_mask = DW_IC_INTR_DEFAULT_MASK;

for (; dev->msg_write_idx < dev->msgs_num; dev->msg_write_idx++) {
/* if target address has changed, we need to
/*
* if target address has changed, we need to
* reprogram the target address in the i2c
* adapter when we are done with this transfer
*/
Expand Down

0 comments on commit a0e06ea

Please sign in to comment.