pwm: sun4i: Use nsecs_to_jiffies to avoid a division
authorGuru Das Srinagesh <gurus@codeaurora.org>
Tue, 2 Jun 2020 22:31:13 +0000 (15:31 -0700)
committerThierry Reding <thierry.reding@gmail.com>
Wed, 17 Jun 2020 18:42:09 +0000 (20:42 +0200)
commitc7dcccaec2f7e99f95ad4b7c20f4f9086c6982be
treeded6d9556c9b743ab7a3e8706ea6ffcc7460ea1d
parent4cc23430a5361f29999545de34fc05fa7d8e513b
pwm: sun4i: Use nsecs_to_jiffies to avoid a division

Since the PWM framework is switching struct pwm_state.period's datatype
to u64, prepare for this transition by using nsecs_to_jiffies() which
does away with the need for a division operation.

Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-sun4i.c