Commit 380a295c authored by Wolfram Sang's avatar Wolfram Sang
Browse files

i2c: ocores: use new 8 bit address helper function

parent 0d47ce21
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -178,10 +178,7 @@ static void ocores_process(struct ocores_i2c *i2c)
		if (i2c->nmsgs) {	/* end? */
			/* send start? */
			if (!(msg->flags & I2C_M_NOSTART)) {
				u8 addr = (msg->addr << 1);

				if (msg->flags & I2C_M_RD)
					addr |= 1;
				u8 addr = i2c_8bit_addr_from_msg(msg);

				i2c->state = STATE_START;