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

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

Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-imx27.c