diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2016-04-03 21:44:49 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2016-04-11 19:54:59 +0300 |
commit | fa5ce47a994867e79bd595ec2eef5178834c2570 (patch) | |
tree | 7ed765c9661508879c014828cffa726d5514c2b4 /drivers/i2c/busses/i2c-brcmstb.c | |
parent | 191d738d847e63b24da7cacbdfb179e5b5a9145f (diff) | |
download | linux-fa5ce47a994867e79bd595ec2eef5178834c2570.tar.xz |
i2c: brcmstb: 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-brcmstb.c')
-rw-r--r-- | drivers/i2c/busses/i2c-brcmstb.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/i2c/busses/i2c-brcmstb.c b/drivers/i2c/busses/i2c-brcmstb.c index 4a45408dd820..6a8cfc1344b2 100644 --- a/drivers/i2c/busses/i2c-brcmstb.c +++ b/drivers/i2c/busses/i2c-brcmstb.c @@ -446,9 +446,7 @@ static int brcmstb_i2c_do_addr(struct brcmstb_i2c_dev *dev, } } else { - addr = msg->addr << 1; - if (msg->flags & I2C_M_RD) - addr |= 1; + addr = i2c_8bit_addr_from_msg(msg); bsc_writel(dev, addr, chip_address); } |