pwm: clps711x: Use 64-bit division macro
authorGuru Das Srinagesh <gurus@codeaurora.org>
Tue, 2 Jun 2020 22:31:08 +0000 (15:31 -0700)
committerThierry Reding <thierry.reding@gmail.com>
Tue, 16 Jun 2020 09:16:08 +0000 (11:16 +0200)
commit5bd0b9011da836dad1a00d92ebead7eaa87f5fe3
treebdf36c1489656d30d9e788914324e0edc5b8adca
parentf3e4b14144a928c097e2d526f6dcd6ba0f5eba8a
pwm: clps711x: Use 64-bit division macro

Since the PWM framework is switching struct pwm_args.period's datatype
to u64, prepare for this transition by using DIV64_U64_ROUND_CLOSEST to
handle a 64-bit divisor.

Cc: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-clps711x.c