/* 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* __init usb_find_endpoint(struct usb_descriptor_header **src, struct usb_descriptor_header **copy, struct usb_endpoint_descriptor *match)
/* 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* __init 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;
}