mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 01:22:07 +00:00
regulator: tps62360: Fix up a pointer-integer size mismatch warning
Fix up the following pointer-integer size mismatch warning in tps62360_probe(): drivers/regulator/tps62360-regulator.c: In function 'tps62360_probe': drivers/regulator/tps62360-regulator.c:363:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] chip_id = (int)match->data; ^ Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
6ce4eac1f6
commit
541f597f10
@ -360,7 +360,7 @@ static int tps62360_probe(struct i2c_client *client,
|
|||||||
dev_err(&client->dev, "Error: No device match found\n");
|
dev_err(&client->dev, "Error: No device match found\n");
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
chip_id = (int)match->data;
|
chip_id = (int)(long)match->data;
|
||||||
if (!pdata)
|
if (!pdata)
|
||||||
pdata = of_get_tps62360_platform_data(&client->dev);
|
pdata = of_get_tps62360_platform_data(&client->dev);
|
||||||
} else if (id) {
|
} else if (id) {
|
||||||
|
Loading…
Reference in New Issue
Block a user