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>
This commit is contained in:

committed by
Felipe Balbi

parent
e47d92545c
commit
19c1eac268
@@ -196,7 +196,8 @@ static int tahvo_usb_set_suspend(struct usb_phy *dev, int suspend)
|
||||
|
||||
static int tahvo_usb_set_host(struct usb_otg *otg, struct usb_bus *host)
|
||||
{
|
||||
struct tahvo_usb *tu = container_of(otg->phy, struct tahvo_usb, phy);
|
||||
struct tahvo_usb *tu = container_of(otg->usb_phy, struct tahvo_usb,
|
||||
phy);
|
||||
|
||||
dev_dbg(&tu->pt_dev->dev, "%s %p\n", __func__, host);
|
||||
|
||||
@@ -225,7 +226,8 @@ static int tahvo_usb_set_host(struct usb_otg *otg, struct usb_bus *host)
|
||||
static int tahvo_usb_set_peripheral(struct usb_otg *otg,
|
||||
struct usb_gadget *gadget)
|
||||
{
|
||||
struct tahvo_usb *tu = container_of(otg->phy, struct tahvo_usb, phy);
|
||||
struct tahvo_usb *tu = container_of(otg->usb_phy, struct tahvo_usb,
|
||||
phy);
|
||||
|
||||
dev_dbg(&tu->pt_dev->dev, "%s %p\n", __func__, gadget);
|
||||
|
||||
@@ -383,7 +385,7 @@ static int tahvo_usb_probe(struct platform_device *pdev)
|
||||
tu->phy.label = DRIVER_NAME;
|
||||
tu->phy.set_suspend = tahvo_usb_set_suspend;
|
||||
|
||||
tu->phy.otg->phy = &tu->phy;
|
||||
tu->phy.otg->usb_phy = &tu->phy;
|
||||
tu->phy.otg->set_host = tahvo_usb_set_host;
|
||||
tu->phy.otg->set_peripheral = tahvo_usb_set_peripheral;
|
||||
|
||||
|
Reference in New Issue
Block a user