mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-26 06:04:14 +08:00
power: supply: ltc2941: Fix ptr to enum cast
clang complains about casting pointers to smaller enum types. Signed-off-by: Iskren Chernev <iskren.chernev@gmail.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
parent
411643e949
commit
58d1620c4d
@ -473,7 +473,8 @@ static int ltc294x_i2c_probe(struct i2c_client *client,
|
||||
|
||||
np = of_node_get(client->dev.of_node);
|
||||
|
||||
info->id = (enum ltc294x_id)of_device_get_match_data(&client->dev);
|
||||
info->id = (enum ltc294x_id) (uintptr_t) of_device_get_match_data(
|
||||
&client->dev);
|
||||
info->supply_desc.name = np->name;
|
||||
|
||||
/* r_sense can be negative, when sense+ is connected to the battery
|
||||
|
Loading…
Reference in New Issue
Block a user