summaryrefslogtreecommitdiff
path: root/include/linux/power_supply.h
diff options
context:
space:
mode:
authorRhyland Klein <rklein@nvidia.com>2013-04-02 01:45:54 +0400
committerAnton Vorontsov <anton@enomsg.org>2013-04-17 05:35:31 +0400
commit5e0848c6026ab98f47e0e179f5c76875cd509d58 (patch)
tree332ee36d2d55cdc610e81d8d9549b8bc989bf5ca /include/linux/power_supply.h
parentda1233364d51947d8c84a33e200fcfb177ee9f20 (diff)
downloadlinux-5e0848c6026ab98f47e0e179f5c76875cd509d58.tar.xz
power_supply: Add core support for supplied_from
This patch adds support for supplies to register a list of char *'s which represent the list of supplies which supply them. This is the opposite as the supplied_to list. This change maintains support for supplied_to until all drivers which make use of it already are converted. Signed-off-by: Rhyland Klein <rklein@nvidia.com> Reviewed-by: Stephen Warren <swarren@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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h
index 002a99f96331..c1cbd5e4e484 100644
--- a/include/linux/power_supply.h
+++ b/include/linux/power_supply.h
@@ -171,6 +171,9 @@ struct power_supply {
char **supplied_to;
size_t num_supplicants;
+ char **supplied_from;
+ size_t num_supplies;
+
int (*get_property)(struct power_supply *psy,
enum power_supply_property psp,
union power_supply_propval *val);