diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2016-04-03 20:44:58 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2016-04-11 18:54:59 +0200 |
commit | e3c60f3d2d8bc803806262ecb4ec5b2723bcd606 (patch) | |
tree | 9168fad3e4482af80ff7517cd826e5cafb6a1737 /drivers/i2c/busses/i2c-qup.c | |
parent | i2c: powermac: use new 8 bit address helper function (diff) | |
download | linux-e3c60f3d2d8bc803806262ecb4ec5b2723bcd606.tar.xz linux-e3c60f3d2d8bc803806262ecb4ec5b2723bcd606.zip |
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>
Diffstat (limited to 'drivers/i2c/busses/i2c-qup.c')
-rw-r--r-- | drivers/i2c/busses/i2c-qup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-qup.c b/drivers/i2c/busses/i2c-qup.c index 23eaabb19f96..cc6439ab3f71 100644 --- a/drivers/i2c/busses/i2c-qup.c +++ b/drivers/i2c/busses/i2c-qup.c @@ -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, 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 data_len; |