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)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:47:46 +0000 (11:47 +0900)
commit39bf79ffea64ae6d709857e75c5c0709f8984475
tree85e7507dea163242ee580467691bf82188d11845
parentd0b2fe36f3cca7e3bcf04edee24a909614a8953f
phy: core: Add an exported of_phy_get function

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>
[backport from upstream commit 0b3f3b2c777a2f7d20c9826a190ffd5bbd288f8f]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Id5aef3fdb574ba269f938428375cc4e88e5e59c0
drivers/phy/phy-core.c
include/linux/phy/phy.h