* [PATCH] staging: nvec: Fix incorrect type of i2c address
@ 2017-02-13 8:35 Franck Demathieu
2017-02-14 10:39 ` Marc Dietrich
0 siblings, 1 reply; 2+ messages in thread
From: Franck Demathieu @ 2017-02-13 8:35 UTC (permalink / raw)
To: marvin24-Mmb7MZpHnFY, gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r
Cc: ac100-oU9gvf+ajcQ97yFScArB1dHuzzzSOjJt,
linux-tegra-u79uwXL29TY76Z2rM5mHXA,
devel-gWbeCf7V1WCQmaza687I9mD2FQJk+8+b
From: Franck Demathieu <franck.demathieu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
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-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
drivers/staging/nvec/nvec.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/nvec/nvec.h b/drivers/staging/nvec/nvec.h
index c03ca8d..aa7c70e 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;
--
2.8.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] staging: nvec: Fix incorrect type of i2c address
2017-02-13 8:35 [PATCH] staging: nvec: Fix incorrect type of i2c address Franck Demathieu
@ 2017-02-14 10:39 ` Marc Dietrich
0 siblings, 0 replies; 2+ messages in thread
From: Marc Dietrich @ 2017-02-14 10:39 UTC (permalink / raw)
To: Franck Demathieu, linux-tegra; +Cc: devel, gregkh
[-- Attachment #1.1: Type: text/plain, Size: 1079 bytes --]
Am Montag, 13. Februar 2017, 09:35:19 CET schrieb Franck Demathieu:
> From: Franck Demathieu <franck.demathieu@intel.com>
>
> 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>
looks correct. Thanks!
Acked-by: Marc Dietrich <marvin24@gmx.de>
> ---
> drivers/staging/nvec/nvec.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/nvec/nvec.h b/drivers/staging/nvec/nvec.h
> index c03ca8d..aa7c70e 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;
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
[-- Attachment #2: Type: text/plain, Size: 169 bytes --]
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-02-14 10:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-13 8:35 [PATCH] staging: nvec: Fix incorrect type of i2c address Franck Demathieu
2017-02-14 10:39 ` Marc Dietrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox