lkml.org 
[lkml]   [2014]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH 0/4] power_supply: Add DT helper function to get power-supply dev from dt
Hi,

On 03/18/2014 09:38 AM, sre@ring0.de wrote:
> Hi,
>
> On Mon, Mar 17, 2014 at 09:43:43PM +0900, Chanwoo Choi wrote:
>> This patchset add DT helper function to get power-supply device from devicetree.
>> - of_power_supply_get_dev(struct device *dev, enum power_supply_dev_type type,
>> int index)
>> Power-supply class provides 'power_supply_get_by_name()' to users who want to
>> find power-supply device with the name of power-supply device.
>>
>> If CONFIG_OF is enabled, device drivers which want to get power-supply device
>> would directly get the power-supply device from devicetree by using of_power_
>> supply_get_dev(). This function can be used instead of power_supply_get_by_name().
>>
>> For example,
>> [...]
>
> include/linux/power_supply.h provides the following function already:
>
> struct power_supply *
> power_supply_get_by_phandle(struct device_node *np, const char *property);
>

OK, thanks for your reply.


Dear all,
Ignore this patchset. I'll re-send new patchset using power_supply_get_by_phandle().

Best Regards,
Chanwoo Choi



\
 
 \ /
  Last update: 2014-03-18 03:01    [W:0.373 / U:0.916 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site