Skip to content

Commit 3b0277f

Browse files
hkallweitWolfram Sang
authored andcommitted
i2c: meson: fix wrong variable usage in meson_i2c_put_data
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: 30021e3 ("i2c: add support for Amlogic Meson I2C controller")
1 parent b0c1e95 commit 3b0277f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/i2c/busses/i2c-meson.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ static void meson_i2c_put_data(struct meson_i2c *i2c, char *buf, int len)
175175
wdata1 |= *buf++ << ((i - 4) * 8);
176176

177177
writel(wdata0, i2c->regs + REG_TOK_WDATA0);
178-
writel(wdata0, i2c->regs + REG_TOK_WDATA1);
178+
writel(wdata1, i2c->regs + REG_TOK_WDATA1);
179179

180180
dev_dbg(i2c->dev, "%s: data %08x %08x len %d\n", __func__,
181181
wdata0, wdata1, len);

0 commit comments

Comments
 (0)