From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tomasz Figa Subject: Re: [PATCH v9 1/4] phy: core: Add an exported of_phy_get function Date: Wed, 05 Mar 2014 17:03:31 +0100 Message-ID: <53174AD3.7040302@gmail.com> References: <1394033288-5551-1-git-send-email-k.debski@samsung.com> <1394033288-5551-2-git-send-email-k.debski@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1394033288-5551-2-git-send-email-k.debski@samsung.com> Sender: linux-kernel-owner@vger.kernel.org To: Kamil Debski , linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org Cc: kyungmin.park@samsung.com, kishon@ti.com, t.figa@samsung.com, s.nawrocki@samsung.com, m.szyprowski@samsung.com, gautam.vivek@samsung.com, mat.krawczuk@gmail.com, yulgon.kim@samsung.com, p.paneri@samsung.com, av.tikhomirov@samsung.com, jg1.han@samsung.com, galak@codeaurora.org, matt.porter@linaro.org, tjakobi@math.uni-bielefeld.de, stern@rowland.harvard.edu, sander@humilis.net List-Id: devicetree@vger.kernel.org On 05.03.2014 16:28, Kamil Debski wrote: > 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 > --- > drivers/phy/phy-core.c | 45 ++++++++++++++++++++++++++++++++++++--------- > include/linux/phy/phy.h | 6 ++++++ > 2 files changed, 42 insertions(+), 9 deletions(-) Reviewed-by: Tomasz Figa Best regards, Tomasz