Skip to content

Commit

Permalink
tps65090-charger: Add dt node to power_supply
Browse files Browse the repository at this point in the history
Passing in the dt node for this charger enables the logic in the core to
lookup this device, to see if it is supplying another power_supply,
through dt.

Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
  • Loading branch information
Rhyland Klein authored and Anton Vorontsov committed Jun 29, 2013
1 parent 89a22b1 commit 605860b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/power/tps65090-charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ static int tps65090_charger_probe(struct platform_device *pdev)
cdata->ac.num_properties = ARRAY_SIZE(tps65090_ac_props);
cdata->ac.supplied_to = pdata->supplied_to;
cdata->ac.num_supplicants = pdata->num_supplicants;
cdata->ac.of_node = pdev->dev.of_node;

ret = power_supply_register(&pdev->dev, &cdata->ac);
if (ret) {
Expand Down

0 comments on commit 605860b

Please sign in to comment.