]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/usb/gadget/config.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/wfg/writeback
[karo-tx-linux.git] / drivers / usb / gadget / config.c
index 09084fd646abccbc5c5402b99dde831faaf63e3c..b2c00133487626dd1bbe211071bf3e2fa04bbbe6 100644 (file)
@@ -165,28 +165,3 @@ usb_copy_descriptors(struct usb_descriptor_header **src)
        return ret;
 }
 
-/**
- * usb_find_endpoint - find a copy of an endpoint descriptor
- * @src: original vector of descriptors
- * @copy: copy of @src
- * @match: endpoint descriptor found in @src
- *
- * This returns the copy of the @match descriptor made for @copy.  Its
- * intended use is to help remembering the endpoint descriptor to use
- * when enabling a given endpoint.
- */
-struct usb_endpoint_descriptor *
-usb_find_endpoint(
-       struct usb_descriptor_header **src,
-       struct usb_descriptor_header **copy,
-       struct usb_endpoint_descriptor *match
-)
-{
-       while (*src) {
-               if (*src == (void *) match)
-                       return (void *)*copy;
-               src++;
-               copy++;
-       }
-       return NULL;
-}