Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46686
b: refs/heads/master
c: 1f5b9cc
h: refs/heads/master
v: v3
  • Loading branch information
H�vard Skinnemoen authored and Greg Kroah-Hartman committed Feb 7, 2007
1 parent 3c5dca8 commit 1fa5c97
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 49631ca7f3e2fd05186028b453fa27f75b830de7
refs/heads/master: 1f5b9cc9e4cf5847e7550c4079cebb80170e71dd
8 changes: 8 additions & 0 deletions trunk/drivers/usb/gadget/gadget_chips.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@
#define gadget_is_pxa27x(g) 0
#endif

#ifdef CONFIG_USB_GADGET_HUSB2DEV
#define gadget_is_husb2dev(g) !strcmp("husb2_udc", (g)->name)
#else
#define gadget_is_husb2dev(g) 0
#endif

#ifdef CONFIG_USB_GADGET_S3C2410
#define gadget_is_s3c2410(g) !strcmp("s3c2410_udc", (g)->name)
#else
Expand Down Expand Up @@ -169,5 +175,7 @@ static inline int usb_gadget_controller_number(struct usb_gadget *gadget)
return 0x16;
else if (gadget_is_mpc8272(gadget))
return 0x17;
else if (gadget_is_husb2dev(gadget))
return 0x18;
return -ENOENT;
}

0 comments on commit 1fa5c97

Please sign in to comment.