diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2016-04-03 20:44:47 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2016-04-11 18:54:59 +0200 |
commit | 32822bff880bd9c3b55145e258d03dc671f0d2ea (patch) | |
tree | 19d6361f7049c9e416c032b322bb1c75f35d462a /drivers/i2c/busses/i2c-bcm-iproc.c | |
parent | i2c: core: use new 8 bit address helper function (diff) | |
download | linux-32822bff880bd9c3b55145e258d03dc671f0d2ea.tar.xz linux-32822bff880bd9c3b55145e258d03dc671f0d2ea.zip |
i2c: bcm-iproc: 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-bcm-iproc.c')
-rw-r--r-- | drivers/i2c/busses/i2c-bcm-iproc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-bcm-iproc.c b/drivers/i2c/busses/i2c-bcm-iproc.c index b9f0fff4e723..19c843828fe2 100644 --- a/drivers/i2c/busses/i2c-bcm-iproc.c +++ b/drivers/i2c/busses/i2c-bcm-iproc.c @@ -267,7 +267,7 @@ static int bcm_iproc_i2c_xfer_single_msg(struct bcm_iproc_i2c_dev *iproc_i2c, iproc_i2c->msg = msg; /* format and load slave address into the TX FIFO */ - addr = msg->addr << 1 | (msg->flags & I2C_M_RD ? 1 : 0); + addr = i2c_8bit_addr_from_msg(msg); writel(addr, iproc_i2c->base + M_TX_OFFSET); /* |