Re: [REPOST Patch v1 3/3] power: power_supply_core: Add support for supplied_from

2013-03-30 Thread Anton Vorontsov
On Mon, Mar 25, 2013 at 10:24:50PM -0400, Rhyland Klein wrote: [...] > +int power_supply_find_supply_from_node(struct device_node *supply_node) > +{ > + int error; > + struct device *dev; > + struct class_dev_iter iter; > + > + /* Use iterator to see if any other device is

Re: [REPOST Patch v1 3/3] power: power_supply_core: Add support for supplied_from

2013-03-30 Thread Anton Vorontsov
On Mon, Mar 25, 2013 at 10:24:50PM -0400, Rhyland Klein wrote: [...] +int power_supply_find_supply_from_node(struct device_node *supply_node) +{ + int error; + struct device *dev; + struct class_dev_iter iter; + + /* Use iterator to see if any other device is registered. +

[REPOST Patch v1 3/3] power: power_supply_core: Add support for supplied_from

2013-03-25 Thread Rhyland Klein
Adding support for supplied_from char * array. This is meant to store the list of suppliers for a given supply, i.e. chargers for a battery. This list can be populated through devicetree readily as well as passed directly from the driver. Signed-off-by: Rhyland Klein --- v1: - Changed from RFC

[REPOST Patch v1 3/3] power: power_supply_core: Add support for supplied_from

2013-03-25 Thread Rhyland Klein
Adding support for supplied_from char * array. This is meant to store the list of suppliers for a given supply, i.e. chargers for a battery. This list can be populated through devicetree readily as well as passed directly from the driver. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v1: -