projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d230c9
)
mfd: max14577: Cast to architecture agnostic data type
author
Lee Jones
<lee.jones@linaro.org>
Tue, 20 May 2014 14:37:41 +0000
(15:37 +0100)
committer
Lee Jones
<lee.jones@linaro.org>
Tue, 3 Jun 2014 07:11:50 +0000
(08:11 +0100)
drivers/mfd/max14577.c:334:25:
warning: cast from pointer to integer of different size
max14577->dev_type = (unsigned int)of_id->data;
^
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/max14577.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mfd/max14577.c
b/drivers/mfd/max14577.c
index 36de88d0deddd420327352cae4b5d5532ddcdb8c..4a5e885383f8a5a866d78545b6f59150a0d6cb2f 100644
(file)
--- a/
drivers/mfd/max14577.c
+++ b/
drivers/mfd/max14577.c
@@
-331,7
+331,8
@@
static int max14577_i2c_probe(struct i2c_client *i2c,
of_id = of_match_device(max14577_dt_match, &i2c->dev);
if (of_id)
- max14577->dev_type = (unsigned int)of_id->data;
+ max14577->dev_type =
+ (enum maxim_device_type)of_id->data;
} else {
max14577->dev_type = id->driver_data;
}
This page took
0.026009 seconds
and
5
git commands to generate.