Commit c6d5f989 authored by David Howells's avatar David Howells Committed by Linus Torvalds
Browse files

drivers/mfd/tps65217.c: fix pointer-integer size mismatch warning in tps65217_probe()

Fix up the following pointer-integer size mismatch warning in

	drivers/mfd/tps65217.c: In function 'tps65217_probe':
	drivers/mfd/tps65217.c:173:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
	   chip_id = (unsigned int)match->data;

Signed-off-by: default avatarDavid Howells <>
Cc: AnilKumar Ch <>
Cc: Samuel Ortiz <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent f30c0c32
...@@ -170,7 +170,7 @@ static int tps65217_probe(struct i2c_client *client, ...@@ -170,7 +170,7 @@ static int tps65217_probe(struct i2c_client *client,
"Failed to find matching dt id\n"); "Failed to find matching dt id\n");
return -EINVAL; return -EINVAL;
} }
chip_id = (unsigned int)match->data; chip_id = (unsigned int)(unsigned long)match->data;
status_off = of_property_read_bool(client->dev.of_node, status_off = of_property_read_bool(client->dev.of_node,
"ti,pmic-shutdown-controller"); "ti,pmic-shutdown-controller");
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment