mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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>
This commit is contained in:
committed by
Stephen Boyd
parent
568035b01c
commit
d3954b51b4
@@ -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,
|
static void zynqmp_get_divider2_val(struct clk_hw *hw,
|
||||||
unsigned long rate,
|
unsigned long rate,
|
||||||
struct zynqmp_clk_divider *divider,
|
struct zynqmp_clk_divider *divider,
|
||||||
int *bestdiv)
|
u32 *bestdiv)
|
||||||
{
|
{
|
||||||
int div1;
|
int div1;
|
||||||
int div2;
|
int div2;
|
||||||
|
|||||||
Reference in New Issue
Block a user