]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
clk: zynqmp: make bestdiv unsigned
authorShubhrajyoti Datta <shubhrajyoti.datta@amd.com>
Thu, 18 Aug 2022 11:31:53 +0000 (17:01 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jan 2024 22:52:44 +0000 (14:52 -0800)
[ Upstream commit d3954b51b475c4848179cd90b24ac73684cdc76b ]

Divisor is always positive make it u32 *.
Also the arguments passed are currently of u32 pointers.

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@amd.com>
Link: https://lore.kernel.org/r/20220818113153.14431-1-shubhrajyoti.datta@amd.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Stable-dep-of: 1fe15be1fb61 ("drivers: clk: zynqmp: update divider round rate logic")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/zynqmp/divider.c

index cb49281f9cf9808da649ea33fcc391d215276655..9e535d3e1c0c31c4efb089a77650a400cacc46ca 100644 (file)
@@ -113,7 +113,7 @@ static unsigned long zynqmp_clk_divider_recalc_rate(struct clk_hw *hw,
 static void zynqmp_get_divider2_val(struct clk_hw *hw,
                                    unsigned long rate,
                                    struct zynqmp_clk_divider *divider,
-                                   int *bestdiv)
+                                   u32 *bestdiv)
 {
        int div1;
        int div2;