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>
This commit is contained in:
Franck Demathieu 2017-02-13 09:35:19 +01:00 committed by Greg Kroah-Hartman
parent 07e9ef1460
commit 4cf64a5f51

View File

@ -138,7 +138,7 @@ struct nvec_chip {
struct device *dev;
int gpio;
int irq;
int i2c_addr;
u32 i2c_addr;
void __iomem *base;
struct clk *i2c_clk;
struct reset_control *rst;