ARM: versatile: clock: convert from round_rate() to determine_rate()
Subsystems (4)
PATCH 1/1 ARM: versatile: clock: convert from round_rate() to determine_rate()
From: Brian Masney <[email protected]>
The round_rate() clk ops is deprecated, so migrate this driver from round_rate() to determine_rate() using the Coccinelle semantic patch on the cover letter of this series.
---
ARM SoC folks: please apply this patch directly.
--- arch/arm/mach-versatile/spc.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
arch/arm/mach-versatile/spc.c +5 -4
@@ -497,12 +497,13 @@ static unsigned long spc_recalc_rate(struct clk_hw *hw,return freq *1000 ; } -static long spc_round_rate (struct clk_hw *hw,unsigned long drate, -unsigned long *parent_rate) +static int spc_determine_rate (struct clk_hw *hw,struct clk_rate_request *req) {struct clk_spc *spc =to_clk_spc (hw); -return ve_spc_round_performance (spc->cluster, drate); + req->rate =ve_spc_round_performance (spc->cluster, req->rate); + +return 0 ; } static int spc_set_rate(struct clk_hw *hw, unsigned long rate,
@@ -515,7 +516,7 @@ static int spc_set_rate(struct clk_hw *hw, unsigned long rate,static struct clk_ops clk_spc_ops = { .recalc_rate = spc_recalc_rate, - .round_rate = spc_round_rate, + .determine_rate = spc_determine_rate, .set_rate = spc_set_rate, };
Signature · 1 line
2.51.0
This patch was applied to soc/soc.git (arm/fixes) by Arnd Bergmann <[email protected]>:
Hello:
This patch was applied to soc/soc.git (arm/fixes)
by Arnd Bergmann <[email protected]>:
Quoted 6 lines · On Wed, 1 Oct 2025 08:11:00 +0200 you wrote:
From: Brian Masney <[email protected]>
The
round_rate()clk ops is deprecated, so migrate this driver fromround_rate()todetermine_rate()using the Coccinelle semantic patch on the cover letter of this series.
Quoted 6 lines
Signed-off-by Brian Masney <[email protected]>Acked-by Sudeep Holla <[email protected]>Reviewed-by Linus Walleij <[email protected]>Signed-off-by Linus Walleij <[email protected]>[...]
Here is the summary with links:
- ARM: versatile: clock: convert from round_rate() to determine_rate()
https://git.kernel.org/soc/soc/c/65d2419f931c
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html