diff options
author | Franck Demathieu <franck.demathieu@intel.com> | 2017-02-13 03:35:19 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-02-14 12:14:28 -0500 |
commit | 4cf64a5f512da749ef635431fdf5da56bf1652af (patch) | |
tree | ae8290c194888522f77a3747fb9203736f981807 | |
parent | 07e9ef146071adf316312b3dd4abfe41c9a45a7d (diff) |
staging: nvec: Fix incorrect type of i2c address
The i2c address is unsigned according to the dt-bindings.
Fix sparse issue (-Wtypesign):
drivers/staging/nvec/nvec.c:781:35: warning: incorrect type in argument 3 (different signedness)
drivers/staging/nvec/nvec.c:781:35: expected unsigned int [usertype] *out_value
drivers/staging/nvec/nvec.c:781:35: got int *<noident>
Signed-off-by: Franck Demathieu <fdemathieu@gmail.com>
Acked-by: Marc Dietrich <marvin24@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/nvec/nvec.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/nvec/nvec.h b/drivers/staging/nvec/nvec.h index c03ca8d9572a..aa7c70ef94f5 100644 --- a/drivers/staging/nvec/nvec.h +++ b/drivers/staging/nvec/nvec.h | |||
@@ -138,7 +138,7 @@ struct nvec_chip { | |||
138 | struct device *dev; | 138 | struct device *dev; |
139 | int gpio; | 139 | int gpio; |
140 | int irq; | 140 | int irq; |
141 | int i2c_addr; | 141 | u32 i2c_addr; |
142 | void __iomem *base; | 142 | void __iomem *base; |
143 | struct clk *i2c_clk; | 143 | struct clk *i2c_clk; |
144 | struct reset_control *rst; | 144 | struct reset_control *rst; |