Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317004
b: refs/heads/master
c: 526c513
h: refs/heads/master
v: v3
  • Loading branch information
Richard Zhao authored and Greg Kroah-Hartman committed Jul 9, 2012
1 parent 14c285c commit 13d5de7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ca72ae9bf6b599519576142b4cb209aa79bbf867
refs/heads/master: 526c51382d59144a3704970ab111d668e604a10f
21 changes: 21 additions & 0 deletions trunk/include/linux/usb/otg.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ struct usb_phy {
int (*set_suspend)(struct usb_phy *x,
int suspend);

/* notify phy connect status change */
int (*notify_connect)(struct usb_phy *x, int port);
int (*notify_disconnect)(struct usb_phy *x, int port);
};


Expand Down Expand Up @@ -276,6 +279,24 @@ usb_phy_set_suspend(struct usb_phy *x, int suspend)
return 0;
}

static inline int
usb_phy_notify_connect(struct usb_phy *x, int port)
{
if (x->notify_connect)
return x->notify_connect(x, port);
else
return 0;
}

static inline int
usb_phy_notify_disconnect(struct usb_phy *x, int port)
{
if (x->notify_disconnect)
return x->notify_disconnect(x, port);
else
return 0;
}

static inline int
otg_start_srp(struct usb_otg *otg)
{
Expand Down

0 comments on commit 13d5de7

Please sign in to comment.