From: NeilBrown Date: Sun, 22 Mar 2015 22:52:48 +0000 (+1100) Subject: usb: phy: Add interface to get phy give of device_node. X-Git-Tag: omap-for-v4.3/legacy-v2-signed~119^2~16^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e842b84c8e7221c45c8dbd7de09185c6149e1cf9;p=pandora-kernel.git 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 Signed-off-by: NeilBrown Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed