ARM: imx: using unsigned variable for do_div
Subsystems (3)
PATCH 1/1 ARM: imx: using unsigned variable for do_div
The definition of do_div uses unsigned long long
variable as its first parameter, better to pass
a u64 variable as first parameter when callingdo_div function.
Signed-off-by Anson Huang <[email protected]>
--- drivers/clk/imx/clk-pllv3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/clk/imx/clk-pllv3.c +2 -2
@@ -220,7 +220,7 @@ static long clk_pllv3_av_round_rate(struct clk_hw *hw, unsigned long rate,unsigned long max_rate = parent_rate *54 ;u32 div;u32 mfn, mfd =1000000 ; -s64 temp64; +u64 temp64;if (rate > max_rate) rate = max_rate;
@@ -244,7 +244,7 @@ static int clk_pllv3_av_set_rate(struct clk_hw *hw, unsigned long rate,unsigned long max_rate = parent_rate *54 ;u32 val, div;u32 mfn, mfd =1000000 ; -s64 temp64; +u64 temp64;if (rate < min_rate || rate > max_rate)return -EINVAL ;
Signature · 1 line
1.9.1
PATCH 1/1 ARM: imx: using unsigned variable for do_div
Quoted 6 lines · Anson Huang
The definition of
do_divuses unsigned long long
variable as its first parameter, better to pass
a u64 variable as first parameter when callingdo_divfunction.Signed-off-by Anson Huang <[email protected]>
Acked-by Uwe Kleine-K?nig <[email protected]>
Thanks
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |
Shawn Guo
AppliedPATCH 1/1 ARM: imx: using unsigned variable for do_div
In reply to Anson HuangQuoted 6 lines · Anson Huang
The definition of
do_divuses unsigned long long
variable as its first parameter, better to pass
a u64 variable as first parameter when callingdo_divfunction.Signed-off-by Anson Huang <[email protected]>
Applied, thanks.