diff options
author | NeilBrown <neilb@suse.de> | 2015-03-23 09:52:48 +1100 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-05-26 10:42:28 -0500 |
commit | e842b84c8e7221c45c8dbd7de09185c6149e1cf9 (patch) | |
tree | 62fc475e5eccfdcdb3210da3b8d48c0cac68cbc5 /drivers/power/twl4030_charger.c | |
parent | 11bece5e063ca567e631c6ea3b1611c10dbc3282 (diff) |
usb: phy: Add interface to get phy give of device_node.
Split the "get phy from device_node" functionality out of
"get phy by phandle" so it can be used directly.
This is useful when a battery-charger is intimately associated with a
particular phy but handled by a separate driver. The charger
can find the device_node based on sibling relationships
without the need for a redundant declaration in the devicetree
description.
As a peripheral that gets a phy will often want to register a
notifier block, and de-register it later, that functionality
is included so the de-registration is automatic.
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/power/twl4030_charger.c')
0 files changed, 0 insertions, 0 deletions