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:
7756e1e
)
i2c: qup: use new 8 bit address helper function
author
Wolfram Sang
<wsa@the-dreams.de>
Sun, 3 Apr 2016 18:44:58 +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-qup.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/i2c/busses/i2c-qup.c
b/drivers/i2c/busses/i2c-qup.c
index 23eaabb19f961a9c80c82d759d653c5a109df01c..cc6439ab3f714145f4d86c49c3d3c79716a058b1 100644
(file)
--- a/
drivers/i2c/busses/i2c-qup.c
+++ b/
drivers/i2c/busses/i2c-qup.c
@@
-515,7
+515,7
@@
static int qup_i2c_get_data_len(struct qup_i2c_dev *qup)
static int qup_i2c_set_tags(u8 *tags, struct qup_i2c_dev *qup,
struct i2c_msg *msg, int is_dma)
{
- u16 addr =
(msg->addr << 1) | ((msg->flags & I2C_M_RD) == I2C_M_RD
);
+ u16 addr =
i2c_8bit_addr_from_msg(msg
);
int len = 0;
int data_len;