projects
/
GitHub
/
LineageOS
/
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:
041edda
)
i2c: bcm-iproc: use new 8 bit address helper function
author
Wolfram Sang
<wsa@the-dreams.de>
Sun, 3 Apr 2016 18:44:47 +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-bcm-iproc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/i2c/busses/i2c-bcm-iproc.c
b/drivers/i2c/busses/i2c-bcm-iproc.c
index b9f0fff4e723a0068f5eceadc58232dd23d684bf..19c843828fe2ca504d9616d3d0fcad48d089c8a1 100644
(file)
--- a/
drivers/i2c/busses/i2c-bcm-iproc.c
+++ b/
drivers/i2c/busses/i2c-bcm-iproc.c
@@
-267,7
+267,7
@@
static int bcm_iproc_i2c_xfer_single_msg(struct bcm_iproc_i2c_dev *iproc_i2c,
iproc_i2c->msg = msg;
/* format and load slave address into the TX FIFO */
- addr =
msg->addr << 1 | (msg->flags & I2C_M_RD ? 1 : 0
);
+ addr =
i2c_8bit_addr_from_msg(msg
);
writel(addr, iproc_i2c->base + M_TX_OFFSET);
/*