diff options
author | Guru Das Srinagesh <gurus@codeaurora.org> | 2020-06-02 15:31:13 -0700 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2020-06-17 20:42:09 +0200 |
commit | c7dcccaec2f7e99f95ad4b7c20f4f9086c6982be (patch) | |
tree | ded6d9556c9b743ab7a3e8706ea6ffcc7460ea1d /drivers/pwm/pwm-berlin.c | |
parent | 4cc23430a5361f29999545de34fc05fa7d8e513b (diff) | |
download | linux-c7dcccaec2f7e99f95ad4b7c20f4f9086c6982be.tar.bz2 |
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>
Diffstat (limited to 'drivers/pwm/pwm-berlin.c')
0 files changed, 0 insertions, 0 deletions