vserver 1.9.5.x5
[linux-2.6.git] / drivers / usb / gadget / epautoconf.c
index a67ba26..f7c6d75 100644 (file)
@@ -55,6 +55,9 @@ static __initdata unsigned in_epnum;
  *
  * 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 (
@@ -192,7 +195,7 @@ find_ep (struct usb_gadget *gadget, const char *name)
                if (0 == strcmp (ep->name, name))
                        return ep;
        }
-       return 0;
+       return NULL;
 }
 
 /**
@@ -280,7 +283,7 @@ struct usb_ep * __init usb_ep_autoconfig (
        }
 
        /* Fail */
-       return 0;
+       return NULL;
 }
 
 /**
@@ -297,7 +300,7 @@ void __init usb_ep_autoconfig_reset (struct usb_gadget *gadget)
        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;