projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
568035b
)
clk: zynqmp: make bestdiv unsigned
author
Shubhrajyoti Datta
<shubhrajyoti.datta@amd.com>
Thu, 18 Aug 2022 11:31:53 +0000
(17:01 +0530)
committer
Stephen Boyd
<sboyd@kernel.org>
Mon, 22 Aug 2022 23:54:14 +0000
(16:54 -0700)
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>
drivers/clk/zynqmp/divider.c
patch
|
blob
|
history
diff --git
a/drivers/clk/zynqmp/divider.c
b/drivers/clk/zynqmp/divider.c
index 422ea79907dd038fbc4442e5d8318e0edef5afac..05788d8325d4b58101efe163f2bb07d3b50457e5 100644
(file)
--- a/
drivers/clk/zynqmp/divider.c
+++ b/
drivers/clk/zynqmp/divider.c
@@
-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;