]> git.sur5r.net Git - u-boot/commit
Blackfin: TWI/I2C: fix pure writes
authorPeter Meerwald <pmeerw@pmeerw.net>
Mon, 29 Jun 2009 19:48:33 +0000 (15:48 -0400)
committerHeiko Schocher <hs@denx.de>
Tue, 30 Jun 2009 06:27:45 +0000 (08:27 +0200)
commit98ab14e858bf60306d0aa3f0df5a7a5f88264aff
tree412c45f36acd5164bbebfbf9e3c51a9c0c243292
parent3e88337b225bf796f6df21d0a7f591530e9d4ce0
Blackfin: TWI/I2C: fix pure writes

If doing a pure write with register address and data (not a read/write
combo transfer), we don't set the initial transfer length properly which
ends up causing only the register address to be transferred.

While we're here, fix the i2c_write() parameter description of the buffer.

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
drivers/i2c/bfin-twi_i2c.c