]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7a2cdc9c1adf1f2b9211bc761b9e90ca19fdd060
tree64a34de0c30c45294c8f827b2cfe3e0fc94bcf6a
parent8e65c1ee68f97db6e67c2a0f65a9839606a20f9b
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