summaryrefslogtreecommitdiff
path: root/ANDROID_3.4.5/drivers/usb/gadget/gadget_chips.h
diff options
context:
space:
mode:
Diffstat (limited to 'ANDROID_3.4.5/drivers/usb/gadget/gadget_chips.h')
-rw-r--r--ANDROID_3.4.5/drivers/usb/gadget/gadget_chips.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ANDROID_3.4.5/drivers/usb/gadget/gadget_chips.h b/ANDROID_3.4.5/drivers/usb/gadget/gadget_chips.h
index a8855d0b..30fad3e8 100644
--- a/ANDROID_3.4.5/drivers/usb/gadget/gadget_chips.h
+++ b/ANDROID_3.4.5/drivers/usb/gadget/gadget_chips.h
@@ -26,6 +26,7 @@
* do that for you.
*/
#define gadget_is_amd5536udc(g) (!strcmp("amd5536udc", (g)->name))
+#define gadget_is_wmt(g) (!strcmp("wmotgdev", (g)->name))
#define gadget_is_at91(g) (!strcmp("at91_udc", (g)->name))
#define gadget_is_atmel_usba(g) (!strcmp("atmel_usba_udc", (g)->name))
#define gadget_is_ci13xxx_msm(g) (!strcmp("ci13xxx_msm", (g)->name))
@@ -118,6 +119,8 @@ static inline int usb_gadget_controller_number(struct usb_gadget *gadget)
return 0x31;
else if (gadget_is_dwc3(gadget))
return 0x32;
+ else if (gadget_is_wmt(gadget))
+ return 0x33;
return -ENOENT;
}