summaryrefslogtreecommitdiff
path: root/drivers/i2c/busses/i2c-meson.c
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2017-03-07 23:06:38 +0300
committerWolfram Sang <wsa@the-dreams.de>2017-03-08 20:06:47 +0300
commit3b0277f198ac928f323c42e180680d2f79aa980d (patch)
tree0ce0bb4fca3cfeafd78b0c3b18350be7afa47bde /drivers/i2c/busses/i2c-meson.c
parentb0c1e95ab44feaad8831f2c06a3473c974003b49 (diff)
downloadlinux-3b0277f198ac928f323c42e180680d2f79aa980d.tar.xz
i2c: meson: fix wrong variable usage in meson_i2c_put_data
Most likely a copy & paste error. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Acked-by: Jerome Brunet <jbrunet@baylibre.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de> Fixes: 30021e3707a7 ("i2c: add support for Amlogic Meson I2C controller")
Diffstat (limited to 'drivers/i2c/busses/i2c-meson.c')
-rw-r--r--drivers/i2c/busses/i2c-meson.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-meson.c b/drivers/i2c/busses/i2c-meson.c
index 2aa61bbbd307..73b97c71a484 100644
--- 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(wdata0, i2c->regs + REG_TOK_WDATA1);
+ writel(wdata1, i2c->regs + REG_TOK_WDATA1);
dev_dbg(i2c->dev, "%s: data %08x %08x len %d\n", __func__,
wdata0, wdata1, len);