From 4cf64a5f512da749ef635431fdf5da56bf1652af Mon Sep 17 00:00:00 2001 From: Franck Demathieu Date: Mon, 13 Feb 2017 09:35:19 +0100 Subject: 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 * Signed-off-by: Franck Demathieu Acked-by: Marc Dietrich Signed-off-by: Greg Kroah-Hartman --- drivers/staging/nvec/nvec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/staging/nvec') 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 { struct device *dev; int gpio; int irq; - int i2c_addr; + u32 i2c_addr; void __iomem *base; struct clk *i2c_clk; struct reset_control *rst; -- cgit v1.2.3