mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
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>
This commit is contained in:
parent
191d738d84
commit
fa5ce47a99
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue