rockchip: i2c: move register write out of inner loop
authorJohn Keeping <john@metanate.com>
Thu, 18 Aug 2016 19:08:41 +0000 (20:08 +0100)
committerHeiko Schocher <hs@denx.de>
Tue, 13 Sep 2016 04:57:16 +0000 (06:57 +0200)
commit551288bd8ba5db8f7553a9b7e4420fd005767b88
tree1f94bc9bd0042e39ace3114ac5438c30060e4340
parent80333fd85c23daa235500ecf675f36efad34851b
rockchip: i2c: move register write out of inner loop

There is no point in writing intermediate values to the txdata
registers.

Also add padding to the debug logging to make it easier to read when
there are leading zeroes.

Signed-off-by: John Keeping <john@metanate.com>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/i2c/rk_i2c.c