mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
i2c: qup: 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
7756e1ee78
commit
e3c60f3d2d
1 changed files with 1 additions and 1 deletions
|
@ -515,7 +515,7 @@ static int qup_i2c_get_data_len(struct qup_i2c_dev *qup)
|
||||||
static int qup_i2c_set_tags(u8 *tags, struct qup_i2c_dev *qup,
|
static int qup_i2c_set_tags(u8 *tags, struct qup_i2c_dev *qup,
|
||||||
struct i2c_msg *msg, int is_dma)
|
struct i2c_msg *msg, int is_dma)
|
||||||
{
|
{
|
||||||
u16 addr = (msg->addr << 1) | ((msg->flags & I2C_M_RD) == I2C_M_RD);
|
u16 addr = i2c_8bit_addr_from_msg(msg);
|
||||||
int len = 0;
|
int len = 0;
|
||||||
int data_len;
|
int data_len;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue