diff options
| author | Yoshihiro Shimoda <[email protected]> | 2019-01-09 08:19:08 +0000 |
|---|---|---|
| committer | Thierry Reding <[email protected]> | 2019-03-04 11:14:21 +0000 |
| commit | b4f9a7268dbe9d55a6bc8c3123cb518657743b76 (patch) | |
| tree | 57314d875a9aff683bac92357e6b6dfe4dbd121c /drivers/pwm/pwm-atmel.c | |
| parent | pwm: rcar: Remove legacy APIs (diff) | |
| download | kernel-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
