Commit 9438f4ff authored by Andy Shevchenko's avatar Andy Shevchenko Committed by sanglipeng
Browse files

i2c: designware: Use DIV_ROUND_CLOSEST() macro

stable inclusion
from stable-v5.10.166
commit 8949ef3a7a0c938e3813f79085af97f32d060347
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I87FRA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=8949ef3a7a0c938e3813f79085af97f32d060347



--------------------------------

[ Upstream commit c045214a ]

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: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
Stable-dep-of: c8c37bc5 ("i2c: designware: use casting of u64 in clock multiplication to avoid overflow")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent d60c69ce
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment