So that it can be used in other places too.

Signed-off-by: Hans de Goede <hdego...@redhat.com>
---
 drivers/usb/core/config.c | 1 -
 include/linux/usb.h       | 2 ++
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/usb/core/config.c b/drivers/usb/core/config.c
index a6b2cab..e4f970c 100644
--- a/drivers/usb/core/config.c
+++ b/drivers/usb/core/config.c
@@ -11,7 +11,6 @@
 
 
 #define USB_MAXALTSETTING              128     /* Hard limit */
-#define USB_MAXENDPOINTS               30      /* Hard limit */
 
 #define USB_MAXCONFIG                  8       /* Arbitrary limit */
 
diff --git a/include/linux/usb.h b/include/linux/usb.h
index 055ba74..a149f05 100644
--- a/include/linux/usb.h
+++ b/include/linux/usb.h
@@ -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)
-- 
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to