Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a0e06ea6 authored by Shinya Kuribayashi's avatar Shinya Kuribayashi Committed by Ben Dooks
Browse files

i2c-designware: Cosmetic cleanups

parent ce6eb574
Loading
Loading
Loading
Loading
+14 −13
Original line number Original line Diff line number Diff line
/*
/*
 * Synopsys Designware I2C adapter driver (master only).
 * Synopsys DesignWare I2C adapter driver (master only).
 *
 *
 * Based on the TI DAVINCI I2C adapter driver.
 * Based on the TI DAVINCI I2C adapter driver.
 *
 *
@@ -163,7 +163,7 @@ static char *abort_sources[] = {
		"trying to send start byte when restart is disabled",
		"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)",
		"trying to read when restart is disabled (10bit mode)",
	[ARB_MASTER_DIS]		=
	[ABRT_MASTER_DIS] =
		"trying to use disabled adapter",
		"trying to use disabled adapter",
	[ARB_LOST] =
	[ARB_LOST] =
		"lost arbitration",
		"lost arbitration",
@@ -394,7 +394,8 @@ i2c_dw_xfer_msg(struct dw_i2c_dev *dev)
	intr_mask = DW_IC_INTR_DEFAULT_MASK;
	intr_mask = DW_IC_INTR_DEFAULT_MASK;


	for (; dev->msg_write_idx < dev->msgs_num; dev->msg_write_idx++) {
	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
		 * reprogram the target address in the i2c
		 * adapter when we are done with this transfer
		 * adapter when we are done with this transfer
		 */
		 */