clk: tegra: Replace .round_rate() with .determine_rate()
authorRajkumar Kasirajan <rkasirajan@nvidia.com>
Wed, 6 Apr 2022 15:17:01 +0000 (16:17 +0100)
committerThierry Reding <treding@nvidia.com>
Wed, 4 May 2022 09:30:51 +0000 (11:30 +0200)
commit6a7ace2b99706a17b3f38e0114172abaeb00f240
tree6e3888ddcd0ca4af69fc5bca8ad12ca367d9ba7c
parent2db12b15c6f3e41ae2f2b3bb15627f28d1eaf715
clk: tegra: Replace .round_rate() with .determine_rate()

Replace the .round_rate() callback with .determine_rate() which can
consider max_rate imposed by clk_set_max_rate() while rounding the clock
rate.

Note that if the .determine_rate() callback is defined it will be called
instead of the .round_rate() callback when calling clk_round_rate(). By
using .determine_rate(), the maximum rate returned when calling
clk_round_rate() is now limited by the current max_rate.

Signed-off-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
[jonathanh@nvidia.com: checkpatch fixes and commit message update]
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/clk/tegra/clk-bpmp.c