Commit fa5ce47a authored by Wolfram Sang's avatar Wolfram Sang

i2c: brcmstb: use new 8 bit address helper function

Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 191d738d
...@@ -446,9 +446,7 @@ static int brcmstb_i2c_do_addr(struct brcmstb_i2c_dev *dev, ...@@ -446,9 +446,7 @@ static int brcmstb_i2c_do_addr(struct brcmstb_i2c_dev *dev,
} }
} else { } else {
addr = msg->addr << 1; addr = i2c_8bit_addr_from_msg(msg);
if (msg->flags & I2C_M_RD)
addr |= 1;
bsc_writel(dev, addr, chip_address); bsc_writel(dev, addr, chip_address);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment