aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-atmel.c
diff options
context:
space:
mode:
authorYoshihiro Shimoda <[email protected]>2019-01-09 08:19:08 +0000
committerThierry Reding <[email protected]>2019-03-04 11:14:21 +0000
commitb4f9a7268dbe9d55a6bc8c3123cb518657743b76 (patch)
tree57314d875a9aff683bac92357e6b6dfe4dbd121c /drivers/pwm/pwm-atmel.c
parentpwm: rcar: Remove legacy APIs (diff)
downloadkernel-b4f9a7268dbe9d55a6bc8c3123cb518657743b76.tar.gz
kernel-b4f9a7268dbe9d55a6bc8c3123cb518657743b76.zip
pwm: rcar: Improve calculation of divider
The rcar_pwm_get_clock_division() has a loop to calculate the divider, but the value of div should be calculatable without a loop. So, this patch improves it. This algorithm is suggested by Uwe Kleine-König and Laurent Pinchart. Signed-off-by: Yoshihiro Shimoda <[email protected]> Acked-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-atmel.c')
0 files changed, 0 insertions, 0 deletions