From: Xavier Roumegue Date: Tue, 18 Oct 2016 20:56:50 +0000 (+0200) Subject: staging: clocking-wizard: Fix incorrect type of speed grade X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a95cd6deebb44f6e3192e6819e1671f623b8449b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: clocking-wizard: Fix incorrect type of speed grade The speed grade type is unsigned according to the dt-bindings. Fix sparse issue (-Wtypesign): CHECK drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c:162:56: warning: incorrect type in argument 3 (different signedness) drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c:162:56: expected unsigned int [usertype] *out_value drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c:162:56: got int * Signed-off-by: Xavier Roumegue Acked-by: Sören Brinkmann Acked-by: Moritz Fischer Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c b/drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c index 7b8be5293883..bf3fe7c61be5 100644 --- a/drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c +++ b/drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c @@ -68,7 +68,7 @@ struct clk_wzrd { struct clk *axi_clk; struct clk *clks_internal[wzrd_clk_int_max]; struct clk *clkout[WZRD_NUM_OUTPUTS]; - int speed_grade; + unsigned int speed_grade; bool suspended; };