Skip to content

Commit

Permalink
staging: clocking-wizard: Fix incorrect type of speed grade
Browse files Browse the repository at this point in the history
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 *<noident>

Signed-off-by: Xavier Roumegue <[email protected]>
Acked-by: Sören Brinkmann <[email protected]>
Acked-by: Moritz Fischer <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
xroumegue authored and gregkh committed Oct 25, 2016
1 parent 4a5a7a6 commit a95cd6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit a95cd6d

Please sign in to comment.