aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2013-10-09 17:19:24 +0200
committerSarah Sharp <sarah.a.sharp@linux.intel.com>2014-03-04 15:38:03 -0800
commit8f5d35441ff26b31e3812556ce468c76f1eb216b (patch)
tree4d08632d96712d407ac40ab99557646582ff7a39 /include/linux/usb.h
parentusb-core: Fix usb_free_streams return value documentation (diff)
downloadlinux-dev-8f5d35441ff26b31e3812556ce468c76f1eb216b.tar.xz
linux-dev-8f5d35441ff26b31e3812556ce468c76f1eb216b.zip
usb-core: Move USB_MAXENDPOINTS definitions to usb.h
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>
Diffstat (limited to 'include/linux/usb.h')
-rw-r--r--include/linux/usb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h
index 7f6eb859873e..9b73dd782c09 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)