Skip to content

Commit

Permalink
sbs-battery: Add dt to power_supply struct
Browse files Browse the repository at this point in the history
By passing in the dt node of this device, we enable the logic for linking
power_supplies together from dt. This is specified by adding a
"power-supplies" property with a phandle to the charger for a given
supply.

Enable this logic now for the sbs-battery driver.

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 2054d6e commit 89a22b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/power/sbs-battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@ static int sbs_probe(struct i2c_client *client,
chip->power_supply.properties = sbs_properties;
chip->power_supply.num_properties = ARRAY_SIZE(sbs_properties);
chip->power_supply.get_property = sbs_get_property;
chip->power_supply.of_node = client->dev.of_node;
/* ignore first notification of external change, it is generated
* from the power_supply_register call back
*/
Expand Down

0 comments on commit 89a22b1

Please sign in to comment.