i2c: designware: Use DIV_ROUND_CLOSEST() macro
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 12 Jul 2021 14:20:26 +0000 (17:20 +0300)
committerWolfram Sang <wsa@kernel.org>
Wed, 11 Aug 2021 14:43:25 +0000 (16:43 +0200)
commitc045214a0f31dd5d6be716ed2f119b57b6c5d3a2
tree4b7a3b3c39b8a225633f66b3396eeefa9fbd06a5
parent26471d4a6cf8d5d0bd0fb55c7169de7d67cc703a
i2c: designware: Use DIV_ROUND_CLOSEST() macro

Instead of open-coding DIV_ROUND_CLOSEST() and similar use the macros directly.
While at it, replace numbers with predefined SI metric prefixes.

No functional change intended.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-designware-common.c
drivers/i2c/busses/i2c-designware-platdrv.c