summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2014-05-20 15:37:41 +0100
committerLee Jones <lee.jones@linaro.org>2014-06-03 08:11:50 +0100
commitfab8445c55abf35e055ef51a1b713899c0778b8a (patch)
tree6bce7f3844826f90f75803fa9a2d1bbfea851ee3 /drivers/mfd
parent9d230c9e4f4e67cb1c1cb9e0f6142da16b0f2796 (diff)
downloadop-kernel-dev-fab8445c55abf35e055ef51a1b713899c0778b8a.zip
op-kernel-dev-fab8445c55abf35e055ef51a1b713899c0778b8a.tar.gz
mfd: max14577: Cast to architecture agnostic data type
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>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/max14577.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mfd/max14577.c b/drivers/mfd/max14577.c
index 36de88d..4a5e885 100644
--- 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;
}
OpenPOWER on IntegriCloud