Skip to content

Commit d3954b5

Browse files
shubhraamdbebarino
authored andcommitted
clk: zynqmp: make bestdiv unsigned
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>
1 parent 568035b commit d3954b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/clk/zynqmp/divider.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ static unsigned long zynqmp_clk_divider_recalc_rate(struct clk_hw *hw,
113113
static void zynqmp_get_divider2_val(struct clk_hw *hw,
114114
unsigned long rate,
115115
struct zynqmp_clk_divider *divider,
116-
int *bestdiv)
116+
u32 *bestdiv)
117117
{
118118
int div1;
119119
int div2;

0 commit comments

Comments
 (0)