i2c: rcar: Consolidate timings calls in rcar_i2c_clock_calculate()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 24 Mar 2020 12:32:13 +0000 (14:32 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 24 Mar 2020 20:59:33 +0000 (21:59 +0100)
commit38a592e26612a6a87e1aa1de5d6f97007bc4934c
treed7d8f737235391a8d908ca5b9709b5ddcedb8ee5
parent263a5646d88506c82850d824e673b14698ebad6b
i2c: rcar: Consolidate timings calls in rcar_i2c_clock_calculate()

Move i2c_parse_fw_timings() to rcar_i2c_clock_calculate() to consolidate
timings calls in one place.

While here, replace hard coded values with standard bus frequency definitions.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-rcar.c