diff options
author | Rhyland Klein <rklein@nvidia.com> | 2013-04-01 17:45:55 -0400 |
---|---|---|
committer | Anton Vorontsov <anton@enomsg.org> | 2013-04-16 21:51:16 -0400 |
commit | f6e0b081fb300a4601b064346963cf6bb163f437 (patch) | |
tree | 0ac887a0a5e1802213619ada446125e8fee6e7c3 /include/linux/power_supply.h | |
parent | 5e0848c6026ab98f47e0e179f5c76875cd509d58 (diff) |
power_supply: Populate supplied_from hierarchy from the device tree
With this patch the power_supply_core will try to populate supplied_from
hierarchy from the device tree.
Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
Diffstat (limited to 'include/linux/power_supply.h')
-rw-r--r-- | include/linux/power_supply.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h index c1cbd5e4e484..3828cefb4f65 100644 --- a/include/linux/power_supply.h +++ b/include/linux/power_supply.h | |||
@@ -173,6 +173,9 @@ struct power_supply { | |||
173 | 173 | ||
174 | char **supplied_from; | 174 | char **supplied_from; |
175 | size_t num_supplies; | 175 | size_t num_supplies; |
176 | #ifdef CONFIG_OF | ||
177 | struct device_node *of_node; | ||
178 | #endif | ||
176 | 179 | ||
177 | int (*get_property)(struct power_supply *psy, | 180 | int (*get_property)(struct power_supply *psy, |
178 | enum power_supply_property psp, | 181 | enum power_supply_property psp, |