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:
949d0c5
)
i2c: ibm_iic: use new 8 bit address helper function
author
Wolfram Sang
<wsa@the-dreams.de>
Sun, 3 Apr 2016 18:44:51 +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-ibm_iic.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/i2c/busses/i2c-ibm_iic.c
b/drivers/i2c/busses/i2c-ibm_iic.c
index b6c080334297345e20e97f272efecab086dc6694..cdaa7be2cd1b940647df6d98b11edd8a2f7c67ef 100644
(file)
--- a/
drivers/i2c/busses/i2c-ibm_iic.c
+++ b/
drivers/i2c/busses/i2c-ibm_iic.c
@@
-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);