phy: core: Add an exported of_phy_get function
authorKamil Debski <k.debski@samsung.com>
Thu, 6 Mar 2014 11:16:46 +0000 (12:16 +0100)
committerKishon Vijay Abraham I <kishon@ti.com>
Sat, 8 Mar 2014 07:09:42 +0000 (12:39 +0530)
Previously the of_phy_get function took a struct device * and
was declared static. It was impossible to call it from
another driver and thus it was impossible to get phy defined
for a given node. The old function was renamed to _of_phy_get
and was left for internal use. of_phy_get function was added
and it was exported. The function enables to get a phy for
a given device tree node.

Signed-off-by: Kamil Debski <k.debski@samsung.com>
Reviewed-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-core.c
include/linux/phy/phy.h

Simple merge
Simple merge