mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
i2c: ibm_iic: 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
949d0c5b72
commit
73fef2196d
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ static int iic_smbus_quick(struct ibm_iic_private* dev, const struct i2c_msg* p)
|
|||
ndelay(t->hd_sta);
|
||||
|
||||
/* Send address */
|
||||
v = (u8)((p->addr << 1) | ((p->flags & I2C_M_RD) ? 1 : 0));
|
||||
v = i2c_8bit_addr_from_msg(p);
|
||||
for (i = 0, mask = 0x80; i < 8; ++i, mask >>= 1){
|
||||
out_8(&iic->directcntl, sda);
|
||||
ndelay(t->low / 2);
|
||||
|
|
Loading…
Reference in a new issue