mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-18 10:37:43 +07:00
i2c: st: 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
5c1274fab5
commit
a51a79d50e
@ -614,8 +614,7 @@ static int st_i2c_xfer_msg(struct st_i2c_dev *i2c_dev, struct i2c_msg *msg,
|
|||||||
unsigned long timeout;
|
unsigned long timeout;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
c->addr = (u8)(msg->addr << 1);
|
c->addr = i2c_8bit_addr_from_msg(msg);
|
||||||
c->addr |= (msg->flags & I2C_M_RD);
|
|
||||||
c->buf = msg->buf;
|
c->buf = msg->buf;
|
||||||
c->count = msg->len;
|
c->count = msg->len;
|
||||||
c->xfered = 0;
|
c->xfered = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user