Re: [PATCH 09/12] i2c: pxa: Remove compile warnning in 64bit mode

2015-05-29 Thread Robert Jarzmik
Vaibhav Hiremath  writes:

> From: Yipeng Yao 
>
> Fix below warning message, coming from 64 bit toolchain.
>
> drivers/i2c/busses/i2c-pxa.c:1237:15: warning: cast from pointer to integer of
> different size [-Wpointer-to-int-cast]


> Signed-off-by: Yipeng Yao 
> [vaibhav.hirem...@linaro.org: Updated Changelog]
> Signed-off-by: Vaibhav Hiremath 
> Cc: Wolfram Sang 
Acked-by: Robert Jarzmik 

Cheers.

--
Robert
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 09/12] i2c: pxa: Remove compile warnning in 64bit mode

2015-05-28 Thread Vaibhav Hiremath
From: Yipeng Yao 

Fix below warning message, coming from 64 bit toolchain.

drivers/i2c/busses/i2c-pxa.c:1237:15: warning: cast from pointer to integer of 
different size [-Wpointer-to-int-cast]

Signed-off-by: Yipeng Yao 
[vaibhav.hirem...@linaro.org: Updated Changelog]
Signed-off-by: Vaibhav Hiremath 
Cc: Wolfram Sang 

Signed-off-by: Vaibhav Hiremath 
---
 drivers/i2c/busses/i2c-pxa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c
index a3ac97c..cf6c383 100644
--- a/drivers/i2c/busses/i2c-pxa.c
+++ b/drivers/i2c/busses/i2c-pxa.c
@@ -1223,7 +1223,7 @@ static int i2c_pxa_probe_dt(struct platform_device *pdev, 
struct pxa_i2c *i2c,
i2c->use_pio = 1;
if (of_get_property(np, "mrvl,i2c-fast-mode", NULL))
i2c->fast_mode = 1;
-   *i2c_types = (u32)(of_id->data);
+   *i2c_types = (long)(of_id->data);
 
if (of_device_is_compatible(np, "mrvl,mmp-twsi")) {
ret = of_property_read_u32(np, "mrvl,i2c-ilcr", &i2c->ilcr);
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html