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:
3f8a57b
)
i2c: sirf: use new 8 bit address helper function
author
Wolfram Sang
<wsa@the-dreams.de>
Sun, 3 Apr 2016 18:45:00 +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-sirf.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/i2c/busses/i2c-sirf.c
b/drivers/i2c/busses/i2c-sirf.c
index 13e51ef6af73dfb1285aa75362163b448a867bb1..792a42bdd335b90d829702ec994292c8b0a241ea 100644
(file)
--- a/
drivers/i2c/busses/i2c-sirf.c
+++ b/
drivers/i2c/busses/i2c-sirf.c
@@
-190,9
+190,7
@@
static void i2c_sirfsoc_set_address(struct sirfsoc_i2c *siic,
writel(regval, siic->base + SIRFSOC_I2C_CMD(siic->cmd_ptr++));
- addr = msg->addr << 1; /* Generate address */
- if (msg->flags & I2C_M_RD)
- addr |= 1;
+ addr = i2c_8bit_addr_from_msg(msg);
/* Reverse direction bit */
if (msg->flags & I2C_M_REV_DIR_ADDR)