diff options
author | Tom Rini <trini@konsulko.com> | 2016-12-20 08:41:54 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-12-20 08:41:54 -0500 |
commit | 23465119610f47b469a3929c077ece5859f77455 (patch) | |
tree | 93739b06854a28ad74f44b20e986dd172aad1a35 /drivers/i2c | |
parent | 4cf5c5f1e60e6541630ae829b5fa2db704c268f0 (diff) | |
parent | 77466267eb3f937f432135f73efb25122e668cfc (diff) | |
download | u-boot-imx-23465119610f47b469a3929c077ece5859f77455.zip u-boot-imx-23465119610f47b469a3929c077ece5859f77455.tar.gz u-boot-imx-23465119610f47b469a3929c077ece5859f77455.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-i2c
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/mv_i2c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/mv_i2c.c b/drivers/i2c/mv_i2c.c index 7f52fa2..c780272 100644 --- a/drivers/i2c/mv_i2c.c +++ b/drivers/i2c/mv_i2c.c @@ -270,7 +270,7 @@ static int __i2c_read(struct mv_i2c *base, uchar chip, u8 *addr, int alen, msg.condition = I2C_COND_NORMAL; msg.acknack = I2C_ACKNAK_WAITACK; msg.direction = I2C_WRITE; - msg.data = *(addr++); + msg.data = addr[alen]; if (i2c_transfer(base, &msg)) return -1; } @@ -341,7 +341,7 @@ static int __i2c_write(struct mv_i2c *base, uchar chip, u8 *addr, int alen, msg.condition = I2C_COND_NORMAL; msg.acknack = I2C_ACKNAK_WAITACK; msg.direction = I2C_WRITE; - msg.data = *(addr++); + msg.data = addr[alen]; if (i2c_transfer(base, &msg)) return -1; } |