summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChuan Liu <chuan.liu@amlogic.com>2025-02-07 17:36:10 +0800
committerStephen Boyd <sboyd@kernel.org>2025-03-04 12:59:06 -0800
commita1123951b24759188010a6aa3d9d0be7b996bd39 (patch)
treec64183a0ba40244259f2fa9bc0f87c741f48d180
parente995f4d516a0e28e667c7e3e3550665d8c0d8134 (diff)
clk: Correct the data types of the variables in clk_calc_new_rates
In clk_calc_new_rates, the "ret" is only used to store the return value of clk_core_determine_round_nolock, and the data type of the return value of clk_core_determine_round_nolock is int. Signed-off-by: Chuan Liu <chuan.liu@amlogic.com> Link: https://lore.kernel.org/r/20250207-correct_data_types-v1-1-f22bc7ea220d@amlogic.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
-rw-r--r--drivers/clk/clk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index cf7720b9172f..00c1a89a852a 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -2283,7 +2283,7 @@ static struct clk_core *clk_calc_new_rates(struct clk_core *core,
unsigned long min_rate;
unsigned long max_rate;
int p_index = 0;
- long ret;
+ int ret;
/* sanity */
if (IS_ERR_OR_NULL(core))