aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-stm32-lp.c
diff options
context:
space:
mode:
authorGuru Das Srinagesh <[email protected]>2020-06-02 22:31:13 +0000
committerThierry Reding <[email protected]>2020-06-17 18:42:09 +0000
commitc7dcccaec2f7e99f95ad4b7c20f4f9086c6982be (patch)
treeded6d9556c9b743ab7a3e8706ea6ffcc7460ea1d /drivers/pwm/pwm-stm32-lp.c
parentpwm: sifive: Use 64-bit division macro (diff)
downloadkernel-c7dcccaec2f7e99f95ad4b7c20f4f9086c6982be.tar.gz
kernel-c7dcccaec2f7e99f95ad4b7c20f4f9086c6982be.zip
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 <[email protected]> Acked-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-stm32-lp.c')
0 files changed, 0 insertions, 0 deletions