From: Wolfram Sang Date: Sun, 3 Apr 2016 18:44:47 +0000 (+0200) Subject: i2c: bcm-iproc: use new 8 bit address helper function X-Git-Tag: v4.7-rc1~113^2~80 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=32822bff880bd9c3b55145e258d03dc671f0d2ea;p=karo-tx-linux.git i2c: bcm-iproc: use new 8 bit address helper function Reviewed-by: Andy Shevchenko Signed-off-by: Wolfram Sang --- 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); /*