pwm: imx-tpm: Use 64-bit division macro
authorGuru Das Srinagesh <gurus@codeaurora.org>
Tue, 2 Jun 2020 22:31:09 +0000 (15:31 -0700)
committerThierry Reding <thierry.reding@gmail.com>
Tue, 16 Jun 2020 09:16:08 +0000 (11:16 +0200)
commitfcdea6b2a3f6508618e39e061073a18c55993a1b
treef8f4be178ecfcdfe96814b5a711e6b56844ecb60
parent5bd0b9011da836dad1a00d92ebead7eaa87f5fe3
pwm: imx-tpm: 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 DIV64_U64_ROUND_CLOSEST to
handle a 64-bit divisor.

Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Pengutronix Kernel Team <kernel@pengutronix.de>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: NXP Linux Team <linux-imx@nxp.com>
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-imx-tpm.c