projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa5ce47
)
i2c: cpm: use new 8 bit address helper function
author
Wolfram Sang
<wsa@the-dreams.de>
Sun, 3 Apr 2016 18:44:50 +0000
(20:44 +0200)
committer
Wolfram Sang
<wsa@the-dreams.de>
Mon, 11 Apr 2016 16:54:59 +0000
(18:54 +0200)
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-cpm.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/i2c/busses/i2c-cpm.c
b/drivers/i2c/busses/i2c-cpm.c
index 714bdc837769fdc74fdf9208c18d0568ecc653ae..b6d2821aaabd5edaeba5b9027b130882720ca039 100644
(file)
--- a/
drivers/i2c/busses/i2c-cpm.c
+++ b/
drivers/i2c/busses/i2c-cpm.c
@@
-197,9
+197,7
@@
static void cpm_i2c_parse_message(struct i2c_adapter *adap,
tbdf = cpm->tbase + tx;
rbdf = cpm->rbase + rx;
- addr = pmsg->addr << 1;
- if (pmsg->flags & I2C_M_RD)
- addr |= 1;
+ addr = i2c_8bit_addr_from_msg(pmsg);
tb = cpm->txbuf[tx];
rb = cpm->rxbuf[rx];