aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/phy/phy-omap-usb2.c
diff options
context:
space:
mode:
authorKishon Vijay Abraham I <kishon@ti.com>2014-03-06 09:38:37 -0500
committerKishon Vijay Abraham I <kishon@ti.com>2014-03-09 03:15:08 -0400
commit14da699bc04212559d5dda19d3f07c807fb58dfd (patch)
treeda70074191e90be6fef4ac02bff16dde3ce45721 /drivers/phy/phy-omap-usb2.c
parentdb68e80f080a21b295f2262976520c40bc505f9d (diff)
phy: rename struct omap_control_usb to struct omap_control_phy
Rename struct omap_control_usb to struct omap_control_phy since it can be used to control PHY of USB, SATA and PCIE. Also move the driver and include files under *phy* and made the corresponding changes in the users of phy-omap-control. Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Roger Quadros <rogerq@ti.com> Acked-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/phy/phy-omap-usb2.c')
-rw-r--r--drivers/phy/phy-omap-usb2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/phy/phy-omap-usb2.c b/drivers/phy/phy-omap-usb2.c
index 3cc4aba6e50e..a2205a841e5e 100644
--- a/drivers/phy/phy-omap-usb2.c
+++ b/drivers/phy/phy-omap-usb2.c
@@ -27,7 +27,7 @@
27#include <linux/err.h> 27#include <linux/err.h>
28#include <linux/pm_runtime.h> 28#include <linux/pm_runtime.h>
29#include <linux/delay.h> 29#include <linux/delay.h>
30#include <linux/usb/omap_control_usb.h> 30#include <linux/phy/omap_control_phy.h>
31#include <linux/phy/phy.h> 31#include <linux/phy/phy.h>
32#include <linux/of_platform.h> 32#include <linux/of_platform.h>
33 33
@@ -105,7 +105,7 @@ static int omap_usb_power_off(struct phy *x)
105{ 105{
106 struct omap_usb *phy = phy_get_drvdata(x); 106 struct omap_usb *phy = phy_get_drvdata(x);
107 107
108 omap_control_usb_phy_power(phy->control_dev, 0); 108 omap_control_phy_power(phy->control_dev, 0);
109 109
110 return 0; 110 return 0;
111} 111}
@@ -114,7 +114,7 @@ static int omap_usb_power_on(struct phy *x)
114{ 114{
115 struct omap_usb *phy = phy_get_drvdata(x); 115 struct omap_usb *phy = phy_get_drvdata(x);
116 116
117 omap_control_usb_phy_power(phy->control_dev, 1); 117 omap_control_phy_power(phy->control_dev, 1);
118 118
119 return 0; 119 return 0;
120} 120}
@@ -251,7 +251,7 @@ static int omap_usb2_probe(struct platform_device *pdev)
251 } 251 }
252 252
253 phy->control_dev = &control_pdev->dev; 253 phy->control_dev = &control_pdev->dev;
254 omap_control_usb_phy_power(phy->control_dev, 0); 254 omap_control_phy_power(phy->control_dev, 0);
255 255
256 otg->set_host = omap_usb_set_host; 256 otg->set_host = omap_usb_set_host;
257 otg->set_peripheral = omap_usb_set_peripheral; 257 otg->set_peripheral = omap_usb_set_peripheral;