i2c: mvtwsi: Fix order of address bytes (high to low)
authorStefan Roese <sr@denx.de>
Thu, 25 Aug 2016 13:20:01 +0000 (15:20 +0200)
committerHeiko Schocher <hs@denx.de>
Fri, 26 Aug 2016 05:02:49 +0000 (07:02 +0200)
commit03d6cd972efb7289ef208ba4bad72d1e7acccf1d
tree53f6239c917586fbc49d438382f1f7572e3a63d2
parent46fe9eb08812cc27a0d5cd97d97373c14d578fe9
i2c: mvtwsi: Fix order of address bytes (high to low)

Patch f8a10ed1 [i2c: mvtwsi: Make address length variable] accidentally
inverted the sequence of address bytes sent to the I2C device. This
patch corrects this by sending the highest byte first and the lowest
byte last again.

Tested on theadorable Armada-XP board.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Mario Six <mario.six@gdsys.cc>
Cc: Heiko Schocher <hs@denx.de>
drivers/i2c/mvtwsi.c