Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 *<noident>

Signed-off-by: Xavier Roumegue <xroumegue@gmail.com>
Acked-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Moritz Fischer <moritz.fischer@ettus.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Xavier Roumegue and committed by
Greg Kroah-Hartman
a95cd6de 4a5a7a66

+1 -1
+1 -1
drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c
··· 68 68 struct clk *axi_clk; 69 69 struct clk *clks_internal[wzrd_clk_int_max]; 70 70 struct clk *clkout[WZRD_NUM_OUTPUTS]; 71 - int speed_grade; 71 + unsigned int speed_grade; 72 72 bool suspended; 73 73 }; 74 74