projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0c1e95
)
i2c: meson: fix wrong variable usage in meson_i2c_put_data
author
Heiner Kallweit
<
[email protected]
>
Tue, 7 Mar 2017 20:06:38 +0000
(21:06 +0100)
committer
Wolfram Sang
<
[email protected]
>
Wed, 8 Mar 2017 17:06:47 +0000
(18:06 +0100)
Most likely a copy & paste error.
Signed-off-by: Heiner Kallweit <
[email protected]
>
Acked-by: Jerome Brunet <
[email protected]
>
Signed-off-by: Wolfram Sang <
[email protected]
>
Fixes: 30021e3707a7 ("i2c: add support for Amlogic Meson I2C controller")
drivers/i2c/busses/i2c-meson.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-meson.c
b/drivers/i2c/busses/i2c-meson.c
index 2aa61bbbd307b9aead3730e137bbf5b95e29a366..73b97c71a484ee186fcb488c1b758cbb04178898 100644
(file)
--- a/
drivers/i2c/busses/i2c-meson.c
+++ b/
drivers/i2c/busses/i2c-meson.c
@@
-175,7
+175,7
@@
static void meson_i2c_put_data(struct meson_i2c *i2c, char *buf, int len)
wdata1 |= *buf++ << ((i - 4) * 8);
writel(wdata0, i2c->regs + REG_TOK_WDATA0);
- writel(wdata
0
, i2c->regs + REG_TOK_WDATA1);
+ writel(wdata
1
, i2c->regs + REG_TOK_WDATA1);
dev_dbg(i2c->dev, "%s: data %08x %08x len %d\n", __func__,
wdata0, wdata1, len);