diff mbox series

clk: zynqmp: make bestdiv unsigned

Message ID 20220818113153.14431-1-shubhrajyoti.datta@amd.com (mailing list archive)
State Accepted, archived
Headers show
Series clk: zynqmp: make bestdiv unsigned | expand

Commit Message

Shubhrajyoti Datta Aug. 18, 2022, 11:31 a.m. UTC
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>
---
 drivers/clk/zynqmp/divider.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stephen Boyd Aug. 22, 2022, 11:54 p.m. UTC | #1
Quoting Shubhrajyoti Datta (2022-08-18 04:31:53)
> 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>
> ---

Applied to clk-next
diff mbox series

Patch

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;