]> git.ipfire.org Git - thirdparty/linux.git/commit
clk: sophgo: sg2042-pll: remove round_rate() in favor of determine_rate()
authorBrian Masney <bmasney@redhat.com>
Fri, 29 Aug 2025 00:38:25 +0000 (20:38 -0400)
committerBrian Masney <bmasney@redhat.com>
Mon, 8 Sep 2025 13:41:25 +0000 (09:41 -0400)
commitd4c515a21b238844cfc3108405bbb0f210cf6d3b
tree0ef38e89304f135219adf70eaae84442bd3842e7
parent9a3b6993613d3fac3b29e44688b865972ff732fd
clk: sophgo: sg2042-pll: remove round_rate() in favor of determine_rate()

This driver implements both the determine_rate() and round_rate() clk
ops, and the round_rate() clk ops is deprecated. When both are defined,
clk_core_determine_round_nolock() from the clk core will only use the
determine_rate() clk ops, so let's remove the round_rate() clk ops since
it's unused.

The implementation of sg2042_clk_pll_determine_rate() calls
sg2042_clk_pll_round_rate(), so this folds the two into a single
function.

Reviewed-by: Chen Wang <unicorn_wang@outlook.com>
Tested-by: Chen Wang <unicorn_wang@outlook.com> # Pioneerbox
Signed-off-by: Brian Masney <bmasney@redhat.com>
drivers/clk/sophgo/clk-sg2042-pll.c