Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188786
b: refs/heads/master
c: 83ba11d
h: refs/heads/master
v: v3
  • Loading branch information
Maurus Cuelenaere authored and Greg Kroah-Hartman committed Mar 19, 2010
1 parent d90c0bf commit 5c1fce5
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: 9c67d28e4e7683b4f667fa4c7b6f9aee92b44b5c
refs/heads/master: 83ba11d93434e6f0cc2e060336b0b19a3f687fa3
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 @@ -136,6 +136,12 @@
#define gadget_is_r8a66597(g) 0
#endif

#ifdef CONFIG_USB_S3C_HSOTG
#define gadget_is_s3c_hsotg(g) (!strcmp("s3c-hsotg", (g)->name))
#else
#define gadget_is_s3c_hsotg(g) 0
#endif


/**
* usb_gadget_controller_number - support bcdDevice id convention
Expand Down Expand Up @@ -192,6 +198,8 @@ static inline int usb_gadget_controller_number(struct usb_gadget *gadget)
return 0x24;
else if (gadget_is_r8a66597(gadget))
return 0x25;
else if (gadget_is_s3c_hsotg(gadget))
return 0x26;
return -ENOENT;
}

Expand Down

0 comments on commit 5c1fce5

Please sign in to comment.