Commit 9c01cae8 authored by Wolfram Sang's avatar Wolfram Sang

i2c: img-scb: use new 8 bit address helper function

Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 73fef219
...@@ -751,9 +751,7 @@ static unsigned int img_i2c_atomic(struct img_i2c *i2c, ...@@ -751,9 +751,7 @@ static unsigned int img_i2c_atomic(struct img_i2c *i2c,
switch (i2c->at_cur_cmd) { switch (i2c->at_cur_cmd) {
case CMD_GEN_START: case CMD_GEN_START:
next_cmd = CMD_GEN_DATA; next_cmd = CMD_GEN_DATA;
next_data = (i2c->msg.addr << 1); next_data = i2c_8bit_addr_from_msg(&i2c->msg);
if (i2c->msg.flags & I2C_M_RD)
next_data |= 0x1;
break; break;
case CMD_GEN_DATA: case CMD_GEN_DATA:
if (i2c->line_status & LINESTAT_INPUT_HELD_V) if (i2c->line_status & LINESTAT_INPUT_HELD_V)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment