*
* Type suffixes are "-bulk", "-iso", or "-int". Numbers are decimal.
* Less common restrictions are implied by gadget_is_*().
+ *
+ * NOTE: each endpoint is unidirectional, as specified by its USB
+ * descriptor; and isn't specific to a configuration or altsetting.
*/
static int __init
ep_matches (
if (0 == strcmp (ep->name, name))
return ep;
}
- return 0;
+ return NULL;
}
/**
}
/* Fail */
- return 0;
+ return NULL;
}
/**
struct usb_ep *ep;
list_for_each_entry (ep, &gadget->ep_list, ep_list) {
- ep->driver_data = 0;
+ ep->driver_data = NULL;
}
#ifdef MANY_ENDPOINTS
in_epnum = 0;