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:
9c01cae
)
i2c: iop3xx: use new 8 bit address helper function
author
Wolfram Sang
<wsa@the-dreams.de>
Sun, 3 Apr 2016 18:44:53 +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-iop3xx.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/i2c/busses/i2c-iop3xx.c
b/drivers/i2c/busses/i2c-iop3xx.c
index 72d6161cf77c0dc44ca167f202f2b3dbd3c608e8..85cbe4b55578614ade02cec4472920e4b8ad7761 100644
(file)
--- a/
drivers/i2c/busses/i2c-iop3xx.c
+++ b/
drivers/i2c/busses/i2c-iop3xx.c
@@
-50,10
+50,7
@@
iic_cook_addr(struct i2c_msg *msg)
{
unsigned char addr;
- addr = (msg->addr << 1);
-
- if (msg->flags & I2C_M_RD)
- addr |= 1;
+ addr = i2c_8bit_addr_from_msg(msg);
return addr;
}