diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2016-04-03 20:44:53 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2016-04-11 18:54:59 +0200 |
commit | 515e240bb54c53195fe0c7a9bad92ffb23e8bc54 (patch) | |
tree | 85cf2c25928909411dbb6a2e7f237455546ee3f2 /drivers/i2c/busses/i2c-iop3xx.c | |
parent | 9c01cae8dd841a3d7b2f7763affd4e3fd16cebcf (diff) | |
download | linux-515e240bb54c53195fe0c7a9bad92ffb23e8bc54.tar.bz2 |
i2c: iop3xx: 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-iop3xx.c')
-rw-r--r-- | drivers/i2c/busses/i2c-iop3xx.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/i2c/busses/i2c-iop3xx.c b/drivers/i2c/busses/i2c-iop3xx.c index 72d6161cf77c..85cbe4b55578 100644 --- a/drivers/i2c/busses/i2c-iop3xx.c +++ b/drivers/i2c/busses/i2c-iop3xx.c @@ -50,10 +50,7 @@ iic_cook_addr(struct i2c_msg *msg) { unsigned char addr; - addr = (msg->addr << 1); - - if (msg->flags & I2C_M_RD) - addr |= 1; + addr = i2c_8bit_addr_from_msg(msg); return addr; } |