Skip to content

Commit

Permalink
mfd: max14577: Cast to architecture agnostic data type
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lee Jones committed Jun 3, 2014
1 parent 9d230c9 commit fab8445
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/mfd/max14577.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fab8445

Please sign in to comment.