aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/phy
diff options
context:
space:
mode:
authorAntoine Tenart <antoine.tenart@free-electrons.com>2014-10-30 13:41:14 -0400
committerFelipe Balbi <balbi@ti.com>2014-11-03 11:01:25 -0500
commit19c1eac2685b62640ca2386a0a885ac2152668c8 (patch)
treee53fc8ad677eb36411e92823675b042e432bda4f /drivers/phy
parente47d92545c2972bcf3711e7db80f481e402163c7 (diff)
usb: rename phy to usb_phy in OTG
This patch prepares the introduction of the generic PHY support in the USB OTG common functions. The USB PHY member of the OTG structure is renamed to 'usb_phy' and modifications are done in all drivers accessing it. Renaming this pointer will allow to keep the compatibility for USB PHY drivers. Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/phy')
-rw-r--r--drivers/phy/phy-omap-usb2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/phy/phy-omap-usb2.c b/drivers/phy/phy-omap-usb2.c
index 9f4093590f4c..32c3e86b4935 100644
--- a/drivers/phy/phy-omap-usb2.c
+++ b/drivers/phy/phy-omap-usb2.c
@@ -60,7 +60,7 @@ EXPORT_SYMBOL_GPL(omap_usb2_set_comparator);
60 60
61static int omap_usb_set_vbus(struct usb_otg *otg, bool enabled) 61static int omap_usb_set_vbus(struct usb_otg *otg, bool enabled)
62{ 62{
63 struct omap_usb *phy = phy_to_omapusb(otg->phy); 63 struct omap_usb *phy = phy_to_omapusb(otg->usb_phy);
64 64
65 if (!phy->comparator) 65 if (!phy->comparator)
66 return -ENODEV; 66 return -ENODEV;
@@ -70,7 +70,7 @@ static int omap_usb_set_vbus(struct usb_otg *otg, bool enabled)
70 70
71static int omap_usb_start_srp(struct usb_otg *otg) 71static int omap_usb_start_srp(struct usb_otg *otg)
72{ 72{
73 struct omap_usb *phy = phy_to_omapusb(otg->phy); 73 struct omap_usb *phy = phy_to_omapusb(otg->usb_phy);
74 74
75 if (!phy->comparator) 75 if (!phy->comparator)
76 return -ENODEV; 76 return -ENODEV;
@@ -251,7 +251,7 @@ static int omap_usb2_probe(struct platform_device *pdev)
251 otg->set_vbus = omap_usb_set_vbus; 251 otg->set_vbus = omap_usb_set_vbus;
252 if (phy_data->flags & OMAP_USB2_HAS_START_SRP) 252 if (phy_data->flags & OMAP_USB2_HAS_START_SRP)
253 otg->start_srp = omap_usb_start_srp; 253 otg->start_srp = omap_usb_start_srp;
254 otg->phy = &phy->phy; 254 otg->usb_phy = &phy->phy;
255 255
256 platform_set_drvdata(pdev, phy); 256 platform_set_drvdata(pdev, phy);
257 257