Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

clk: qcom: smd-rpm: convert from round_rate() to determine_rate()

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.

Signed-off-by: Brian Masney <bmasney@redhat.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250703-clk-cocci-drop-round-rate-v1-5-3a8da898367e@redhat.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Brian Masney and committed by
Bjorn Andersson
11add210 2c0dce73

+4 -4
+4 -4
drivers/clk/qcom/clk-smd-rpm.c
··· 370 370 return 0; 371 371 } 372 372 373 - static long clk_smd_rpm_round_rate(struct clk_hw *hw, unsigned long rate, 374 - unsigned long *parent_rate) 373 + static int clk_smd_rpm_determine_rate(struct clk_hw *hw, 374 + struct clk_rate_request *req) 375 375 { 376 376 /* 377 377 * RPM handles rate rounding and we don't have a way to 378 378 * know what the rate will be, so just return whatever 379 379 * rate is requested. 380 380 */ 381 - return rate; 381 + return 0; 382 382 } 383 383 384 384 static unsigned long clk_smd_rpm_recalc_rate(struct clk_hw *hw, ··· 427 427 .prepare = clk_smd_rpm_prepare, 428 428 .unprepare = clk_smd_rpm_unprepare, 429 429 .set_rate = clk_smd_rpm_set_rate, 430 - .round_rate = clk_smd_rpm_round_rate, 430 + .determine_rate = clk_smd_rpm_determine_rate, 431 431 .recalc_rate = clk_smd_rpm_recalc_rate, 432 432 }; 433 433