mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 10:01:43 +00:00
i2c: cpm: use new 8 bit address helper function
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
parent
fa5ce47a99
commit
949d0c5b72
@ -197,9 +197,7 @@ static void cpm_i2c_parse_message(struct i2c_adapter *adap,
|
||||
tbdf = cpm->tbase + tx;
|
||||
rbdf = cpm->rbase + rx;
|
||||
|
||||
addr = pmsg->addr << 1;
|
||||
if (pmsg->flags & I2C_M_RD)
|
||||
addr |= 1;
|
||||
addr = i2c_8bit_addr_from_msg(pmsg);
|
||||
|
||||
tb = cpm->txbuf[tx];
|
||||
rb = cpm->rxbuf[rx];
|
||||
|
Loading…
Reference in New Issue
Block a user