Merge tag 'wberr-v4.14-1' of git://git.kernel.org/pub/scm/linux/kernel/git/jlayton...
[sfrench/cifs-2.6.git] / drivers / usb / musb / musb_core.h
index 9f22c5b8ce37dacd4e6012cc240f8711f65e576e..c748f4ac1154428428eee6853cd37c816a2ea910 100644 (file)
@@ -465,6 +465,30 @@ static inline struct musb *gadget_to_musb(struct usb_gadget *g)
        return container_of(g, struct musb, g);
 }
 
+static inline char *musb_ep_xfertype_string(u8 type)
+{
+       char *s;
+
+       switch (type) {
+       case USB_ENDPOINT_XFER_CONTROL:
+               s = "ctrl";
+               break;
+       case USB_ENDPOINT_XFER_ISOC:
+               s = "iso";
+               break;
+       case USB_ENDPOINT_XFER_BULK:
+               s = "bulk";
+               break;
+       case USB_ENDPOINT_XFER_INT:
+               s = "int";
+               break;
+       default:
+               s = "";
+               break;
+       }
+       return s;
+}
+
 #ifdef CONFIG_BLACKFIN
 static inline int musb_read_fifosize(struct musb *musb,
                struct musb_hw_ep *hw_ep, u8 epnum)