Re: [PATCH v12 08/11] pwm: sun4i: Use nsecs_to_jiffies to avoid a division
From: Chen-Yu Tsai
Date: Sat Apr 11 2020 - 01:49:41 EST
On Thu, Apr 9, 2020 at 2:53 PM Guru Das Srinagesh <gurus@xxxxxxxxxxxxxx> wrote:
>
> 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.
>
> Cc: Maxime Ripard <mripard@xxxxxxxxxx>
> Cc: Chen-Yu Tsai <wens@xxxxxxxx>
> Cc: Philipp Zabel <p.zabel@xxxxxxxxxxxxxx>
>
> Signed-off-by: Guru Das Srinagesh <gurus@xxxxxxxxxxxxxx>
Acked-by: Chen-Yu Tsai <wens@xxxxxxxx>