sbs-battery: Add dt to power_supply struct
authorRhyland Klein <rklein@nvidia.com>
Mon, 10 Jun 2013 21:26:40 +0000 (17:26 -0400)
committerAnton Vorontsov <anton@enomsg.org>
Sat, 29 Jun 2013 01:20:56 +0000 (18:20 -0700)
commit89a22b1a9850028bd216457397321db5a5ee18f5
tree9be0dd2a98f46b27ebdf028ae5a313c63d8c4ac9
parent2054d6e90e26b01ac0f125a42fecba63f226e55e
sbs-battery: Add dt to power_supply struct

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>
drivers/power/sbs-battery.c