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:
5c1274f
)
i2c: st: use new 8 bit address helper function
author
Wolfram Sang
<wsa@the-dreams.de>
Sun, 3 Apr 2016 18:45:01 +0000
(20:45 +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-st.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/i2c/busses/i2c-st.c
b/drivers/i2c/busses/i2c-st.c
index 6ee77159ac57a38a95664fa3a3b84089e25b9c3b..b3c182fea165e951b367c72509eb91c1c042e564 100644
(file)
--- a/
drivers/i2c/busses/i2c-st.c
+++ b/
drivers/i2c/busses/i2c-st.c
@@
-614,8
+614,7
@@
static int st_i2c_xfer_msg(struct st_i2c_dev *i2c_dev, struct i2c_msg *msg,
unsigned long timeout;
int ret;
- c->addr = (u8)(msg->addr << 1);
- c->addr |= (msg->flags & I2C_M_RD);
+ c->addr = i2c_8bit_addr_from_msg(msg);
c->buf = msg->buf;
c->count = msg->len;
c->xfered = 0;