commit | c4eceb5bb95f17d1041ac9c20b4ee77e82996f48 | [log] [tgz] |
---|---|---|
author | mario.six@gdsys.cc <mario.six@gdsys.cc> | Thu Jul 21 11:57:09 2016 +0200 |
committer | Heiko Schocher <hs@denx.de> | Tue Jul 26 10:20:05 2016 +0200 |
tree | 2366d6687fe4ac992040b668ce8a4fccd1222ace | |
parent | 9f7f68975aa26c438c6ac07bd47de734e468cad0 [diff] |
i2c: mvtwsi: Make address length variable The length of the address parameter of the __twsi_i2c_read and __twsi_i2c_write functions is fixed to four bytes. As a final step in the preparation of the DM conversion, we make the length of this parameter variable by turning it into an array of bytes, and convert the 32 bit value that's passed to the legacy functions into a four-byte-array on the fly. Signed-off-by: Mario Six <mario.six@gdsys.cc> Reviewed-by: Stefan Roese <sr@denx.de>