projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bd75bd
)
i2c: pxa: Fix compile warning in 64bit mode
author
Yipeng Yao
<
[email protected]
>
Tue, 14 Jul 2015 07:36:43 +0000
(13:06 +0530)
committer
Wolfram Sang
<
[email protected]
>
Mon, 10 Aug 2015 06:37:30 +0000
(08:37 +0200)
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 <
[email protected]
>
[
[email protected]
: Updated Changelog]
Signed-off-by: Vaibhav Hiremath <
[email protected]
>
Cc: Wolfram Sang <
[email protected]
>
Acked-by: Robert Jarzmik <
[email protected]
>
Signed-off-by: Wolfram Sang <
[email protected]
>
drivers/i2c/busses/i2c-pxa.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-pxa.c
b/drivers/i2c/busses/i2c-pxa.c
index 632008f24098912c966c7d2407ff97b944279633..d0cc058f42c390deb3ce516d5c58b75bef2eb8e8 100644
(file)
--- a/
drivers/i2c/busses/i2c-pxa.c
+++ b/
drivers/i2c/busses/i2c-pxa.c
@@
-1116,7
+1116,9
@@
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 = (enum pxa_i2c_types)(of_id->data);
+
return 0;
}