i2c: rk3x: use struct "rk3x_i2c_calced_timings"
authorDavid Wu <david.wu@rock-chips.com>
Mon, 16 May 2016 13:57:37 +0000 (21:57 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 17 Jun 2016 11:39:15 +0000 (13:39 +0200)
commite26747bf53b145dc4a64ad518915da8c9a40fef2
tree84edf8cc49ad029320effcc66c43858fa5c75f33
parent0a6ad2f95f36bf1686c6598697d8afc7daca2a03
i2c: rk3x: use struct "rk3x_i2c_calced_timings"

The "div_high" and "div_low" values are always used together.
Group them into a structure to make it easier to pass them
both around. This structure also provides a place for future
calculated timings.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-rk3x.c