backlight: pwm_bl: Use 64-bit division function
authorGuru Das Srinagesh <gurus@codeaurora.org>
Tue, 2 Jun 2020 22:31:14 +0000 (15:31 -0700)
committerThierry Reding <thierry.reding@gmail.com>
Wed, 17 Jun 2020 18:42:10 +0000 (20:42 +0200)
commit134ada17dbad272cdca57f2819a796c87e352274
treee6e3c16433147f7060f94e8b5682093b5c146f3b
parentc7dcccaec2f7e99f95ad4b7c20f4f9086c6982be
backlight: pwm_bl: Use 64-bit division function

Since the PWM framework is switching struct pwm_state.period's datatype
to u64, prepare for this transition by using div_u64 to handle a 64-bit
dividend instead of a straight division operation.

Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/video/backlight/pwm_bl.c