]> git.sur5r.net Git - u-boot/blobdiff - drivers/usb/gadget/config.c
usb:gadget:composite USB composite gadget support
[u-boot] / drivers / usb / gadget / config.c
index 84c90f0dcf778c84d9e5f34d9a1ef48892e09e47..f88d0c190c4ef9a5c0a7ac50bc4c2036e264f1d9 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/string.h>
 
 #include <linux/usb/ch9.h>
+#include <usbdescriptors.h>
 #include <linux/usb/gadget.h>
 
 
@@ -101,7 +102,7 @@ int usb_gadget_config_buf(
        *cp = *config;
 
        /* then interface/endpoint/class/vendor/... */
-       len = usb_descriptor_fillbuf(USB_DT_CONFIG_SIZE + (u8*)buf,
+       len = usb_descriptor_fillbuf(USB_DT_CONFIG_SIZE + (u8 *)buf,
                        length - USB_DT_CONFIG_SIZE, desc);
        if (len < 0)
                return len;
@@ -116,4 +117,3 @@ int usb_gadget_config_buf(
        cp->bmAttributes |= USB_CONFIG_ATT_ONE;
        return len;
 }
-