usb: otg: utils: rename function name in OTG utils

_transceiver() in otg.c is replaced with _phy. usb_set_transceiver is
replaced with usb_add_phy to make it similar to other usb standard
function names like usb_add_hcd.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
Kishon Vijay Abraham I
2012-06-22 17:02:45 +05:30
committed by Felipe Balbi
parent 6b03b13336
commit 721002ec1d
36 changed files with 103 additions and 103 deletions

View File

@@ -376,7 +376,7 @@ static int dsps_musb_init(struct musb *musb)
/* NOP driver needs change if supporting dual instance */
usb_nop_xceiv_register();
musb->xceiv = usb_get_transceiver();
musb->xceiv = usb_get_phy();
if (!musb->xceiv)
return -ENODEV;
@@ -409,7 +409,7 @@ static int dsps_musb_init(struct musb *musb)
return 0;
err0:
usb_put_transceiver(musb->xceiv);
usb_put_phy(musb->xceiv);
usb_nop_xceiv_unregister();
return status;
}
@@ -430,7 +430,7 @@ static int dsps_musb_exit(struct musb *musb)
data->set_phy_power(0);
/* NOP driver needs change if supporting dual instance */
usb_put_transceiver(musb->xceiv);
usb_put_phy(musb->xceiv);
usb_nop_xceiv_unregister();
return 0;