diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2019-08-30 15:45:12 +0200 |
---|---|---|
committer | Geert Uytterhoeven <geert+renesas@glider.be> | 2019-10-01 10:24:55 +0200 |
commit | 8a6d97a46dfd73a87b76a277b2045bd4036c35aa (patch) | |
tree | c9e8626ec6deb4149f5d50ab2918d0c7cbd1afad /drivers/isdn | |
parent | clk: renesas: rcar-gen3: Absorb cpg_sd_clock_calc_div() (diff) | |
download | linux-8a6d97a46dfd73a87b76a277b2045bd4036c35aa.tar.xz linux-8a6d97a46dfd73a87b76a277b2045bd4036c35aa.zip |
clk: renesas: rcar-gen3: Loop to find best rate in cpg_sd_clock_round_rate()
cpg_sd_clock_round_rate() really needs the best rate, not the best
divider. Hence change the iteration to find the former, and get rid of
the final division.
Add an out-of-range rate check while at it.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Link: https://lore.kernel.org/r/20190830134515.11925-6-geert+renesas@glider.be
Diffstat (limited to 'drivers/isdn')
0 files changed, 0 insertions, 0 deletions