OSDN Git Service

usb-core: Move USB_MAXENDPOINTS definitions to usb.h
authorHans de Goede <hdegoede@redhat.com>
Wed, 9 Oct 2013 15:19:24 +0000 (17:19 +0200)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 4 Mar 2014 23:38:03 +0000 (15:38 -0800)
So that it can be used in other places too.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/core/config.c
include/linux/usb.h

index 8d72f0c..14ba398 100644 (file)
@@ -10,7 +10,6 @@
 
 
 #define USB_MAXALTSETTING              128     /* Hard limit */
-#define USB_MAXENDPOINTS               30      /* Hard limit */
 
 #define USB_MAXCONFIG                  8       /* Arbitrary limit */
 
index 7f6eb85..9b73dd7 100644 (file)
@@ -202,6 +202,8 @@ static inline void usb_set_intfdata(struct usb_interface *intf, void *data)
 struct usb_interface *usb_get_intf(struct usb_interface *intf);
 void usb_put_intf(struct usb_interface *intf);
 
+/* Hard limit */
+#define USB_MAXENDPOINTS       30
 /* this maximum is arbitrary */
 #define USB_MAXINTERFACES      32
 #define USB_MAXIADS            (USB_MAXINTERFACES/2)