summaryrefslogtreecommitdiffstats
path: root/drivers/staging/clocking-wizard
diff options
context:
space:
mode:
authorXavier Roumegue <xroumegue@gmail.com>2016-10-18 22:56:50 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-10-25 09:54:32 +0200
commita95cd6deebb44f6e3192e6819e1671f623b8449b (patch)
treed4919807dfa08de6637ebbf54bd250c610048200 /drivers/staging/clocking-wizard
parent4a5a7a662a009e0d3359ea368f8141eafd21b1e4 (diff)
downloadlinux-stable-a95cd6deebb44f6e3192e6819e1671f623b8449b.tar.gz
linux-stable-a95cd6deebb44f6e3192e6819e1671f623b8449b.tar.bz2
linux-stable-a95cd6deebb44f6e3192e6819e1671f623b8449b.zip
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>
Diffstat (limited to 'drivers/staging/clocking-wizard')
-rw-r--r--drivers/staging/clocking-wizard/clk-xlnx-clock-wizard.c2
1 files changed, 1 insertions, 1 deletions
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;
};