diff options
author | Shubhrajyoti Datta <shubhrajyoti.datta@amd.com> | 2022-08-18 17:01:53 +0530 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2022-08-22 16:54:14 -0700 |
commit | d3954b51b475c4848179cd90b24ac73684cdc76b (patch) | |
tree | d5a304d5702b7317b89d1312cac938f7275c8479 /drivers/clk/zynqmp/divider.c | |
parent | 568035b01cfb107af8d2e4bd2fb9aea22cf5b868 (diff) | |
download | lwn-d3954b51b475c4848179cd90b24ac73684cdc76b.tar.gz lwn-d3954b51b475c4848179cd90b24ac73684cdc76b.zip |
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>
Diffstat (limited to 'drivers/clk/zynqmp/divider.c')
-rw-r--r-- | drivers/clk/zynqmp/divider.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/zynqmp/divider.c b/drivers/clk/zynqmp/divider.c index 422ea79907dd..05788d8325d4 100644 --- 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; |