Skip to content
Commit c7dcccae authored by Guru Das Srinagesh's avatar Guru Das Srinagesh Committed by Thierry Reding
Browse files

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: default avatarGuru Das Srinagesh <gurus@codeaurora.org>
Acked-by: default avatarChen-Yu Tsai <wens@csie.org>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 4cc23430
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment