aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/otg/twl6030-usb.c
diff options
context:
space:
mode:
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>2012-02-13 06:24:02 -0500
committerFelipe Balbi <balbi@ti.com>2012-02-13 06:34:36 -0500
commit8675381109b0eb1c948a423c2b35e3f4509cb25e (patch)
tree1b71e8d77114a75f5871569fd0784fe0b4c861e3 /drivers/usb/otg/twl6030-usb.c
parent62aa2b537c6f5957afd98e29f96897419ed5ebab (diff)
usb: otg: Rename otg_transceiver to usb_phy
This is the first step in separating USB transceivers from USB OTG utilities. Includes fixes to IMX code from Sascha Hauer. Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Acked-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Pavankumar Kondeti <pkondeti@codeaurora.org> Acked-by: Li Yang <leoli@freescale.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Acked-by: Igor Grinberg <grinberg@compulab.co.il> Reviewed-by: Marek Vasut <marek.vasut@gmail.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/otg/twl6030-usb.c')
-rw-r--r--drivers/usb/otg/twl6030-usb.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/usb/otg/twl6030-usb.c b/drivers/usb/otg/twl6030-usb.c
index ed2b26cfe814..56c4d3d50ebe 100644
--- a/drivers/usb/otg/twl6030-usb.c
+++ b/drivers/usb/otg/twl6030-usb.c
@@ -87,7 +87,7 @@
87#define VBUS_DET BIT(2) 87#define VBUS_DET BIT(2)
88 88
89struct twl6030_usb { 89struct twl6030_usb {
90 struct otg_transceiver otg; 90 struct usb_phy otg;
91 struct device *dev; 91 struct device *dev;
92 92
93 /* for vbus reporting with irqs disabled */ 93 /* for vbus reporting with irqs disabled */
@@ -137,7 +137,7 @@ static inline u8 twl6030_readb(struct twl6030_usb *twl, u8 module, u8 address)
137 return ret; 137 return ret;
138} 138}
139 139
140static int twl6030_phy_init(struct otg_transceiver *x) 140static int twl6030_phy_init(struct usb_phy *x)
141{ 141{
142 struct twl6030_usb *twl; 142 struct twl6030_usb *twl;
143 struct device *dev; 143 struct device *dev;
@@ -155,7 +155,7 @@ static int twl6030_phy_init(struct otg_transceiver *x)
155 return 0; 155 return 0;
156} 156}
157 157
158static void twl6030_phy_shutdown(struct otg_transceiver *x) 158static void twl6030_phy_shutdown(struct usb_phy *x)
159{ 159{
160 struct twl6030_usb *twl; 160 struct twl6030_usb *twl;
161 struct device *dev; 161 struct device *dev;
@@ -167,7 +167,7 @@ static void twl6030_phy_shutdown(struct otg_transceiver *x)
167 pdata->phy_power(twl->dev, 0, 0); 167 pdata->phy_power(twl->dev, 0, 0);
168} 168}
169 169
170static int twl6030_phy_suspend(struct otg_transceiver *x, int suspend) 170static int twl6030_phy_suspend(struct usb_phy *x, int suspend)
171{ 171{
172 struct twl6030_usb *twl = xceiv_to_twl(x); 172 struct twl6030_usb *twl = xceiv_to_twl(x);
173 struct device *dev = twl->dev; 173 struct device *dev = twl->dev;
@@ -178,7 +178,7 @@ static int twl6030_phy_suspend(struct otg_transceiver *x, int suspend)
178 return 0; 178 return 0;
179} 179}
180 180
181static int twl6030_start_srp(struct otg_transceiver *x) 181static int twl6030_start_srp(struct usb_phy *x)
182{ 182{
183 struct twl6030_usb *twl = xceiv_to_twl(x); 183 struct twl6030_usb *twl = xceiv_to_twl(x);
184 184
@@ -324,7 +324,7 @@ static irqreturn_t twl6030_usbotg_irq(int irq, void *_twl)
324 return IRQ_HANDLED; 324 return IRQ_HANDLED;
325} 325}
326 326
327static int twl6030_set_peripheral(struct otg_transceiver *x, 327static int twl6030_set_peripheral(struct usb_phy *x,
328 struct usb_gadget *gadget) 328 struct usb_gadget *gadget)
329{ 329{
330 struct twl6030_usb *twl; 330 struct twl6030_usb *twl;
@@ -340,7 +340,7 @@ static int twl6030_set_peripheral(struct otg_transceiver *x,
340 return 0; 340 return 0;
341} 341}
342 342
343static int twl6030_enable_irq(struct otg_transceiver *x) 343static int twl6030_enable_irq(struct usb_phy *x)
344{ 344{
345 struct twl6030_usb *twl = xceiv_to_twl(x); 345 struct twl6030_usb *twl = xceiv_to_twl(x);
346 346
@@ -376,7 +376,7 @@ static void otg_set_vbus_work(struct work_struct *data)
376 CHARGERUSB_CTRL1); 376 CHARGERUSB_CTRL1);
377} 377}
378 378
379static int twl6030_set_vbus(struct otg_transceiver *x, bool enabled) 379static int twl6030_set_vbus(struct usb_phy *x, bool enabled)
380{ 380{
381 struct twl6030_usb *twl = xceiv_to_twl(x); 381 struct twl6030_usb *twl = xceiv_to_twl(x);
382 382
@@ -386,7 +386,7 @@ static int twl6030_set_vbus(struct otg_transceiver *x, bool enabled)
386 return 0; 386 return 0;
387} 387}
388 388
389static int twl6030_set_host(struct otg_transceiver *x, struct usb_bus *host) 389static int twl6030_set_host(struct usb_phy *x, struct usb_bus *host)
390{ 390{
391 struct twl6030_usb *twl; 391 struct twl6030_usb *twl;
392 392