diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2016-04-03 20:44:56 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2016-04-11 18:54:59 +0200 |
commit | 380a295c87a6423390898b98e388e1b0a399bb08 (patch) | |
tree | 4ffa352f9f3a46a18e9b7e4e2902fe2d7ae15ac9 /drivers/i2c/busses | |
parent | 0d47ce210a5d6733d7bc8cb07f158908bb224629 (diff) | |
download | op-kernel-dev-380a295c87a6423390898b98e388e1b0a399bb08.zip op-kernel-dev-380a295c87a6423390898b98e388e1b0a399bb08.tar.gz |
i2c: ocores: 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')
-rw-r--r-- | drivers/i2c/busses/i2c-ocores.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c-ocores.c index 11b7b87..dfa7a4b 100644 --- a/drivers/i2c/busses/i2c-ocores.c +++ b/drivers/i2c/busses/i2c-ocores.c @@ -178,10 +178,7 @@ static void ocores_process(struct ocores_i2c *i2c) if (i2c->nmsgs) { /* end? */ /* send start? */ if (!(msg->flags & I2C_M_NOSTART)) { - u8 addr = (msg->addr << 1); - - if (msg->flags & I2C_M_RD) - addr |= 1; + u8 addr = i2c_8bit_addr_from_msg(msg); i2c->state = STATE_START; |