power_supply: Add core support for supplied_from
commit5e0848c6026ab98f47e0e179f5c76875cd509d58
authorRhyland Klein <rklein@nvidia.com>
Mon, 1 Apr 2013 21:45:54 +0000 (1 17:45 -0400)
committerAnton Vorontsov <anton@enomsg.org>
Wed, 17 Apr 2013 01:35:31 +0000 (16 18:35 -0700)
tree332ee36d2d55cdc610e81d8d9549b8bc989bf5ca
parentda1233364d51947d8c84a33e200fcfb177ee9f20
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>
drivers/power/power_supply_core.c
include/linux/power_supply.h