aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2016-01-25 14:30:30 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-03 16:26:30 -0500
commit5363de75307e333d89df7531f9dd8310d973ecdb (patch)
tree5c90ec1dbcf6d1626984ec6306db7d73ee8dd3ab /include/linux/usb
parentd78540419866887345cec480016b0f87f6a5aca2 (diff)
usb: core: switch bus numbering to using idr
USB bus numbering is based on directly dealing with bitmaps and defines a separate list of busses. This can be simplified and unified by using existing idr functionality. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/usb')
-rw-r--r--include/linux/usb/hcd.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/usb/hcd.h b/include/linux/usb/hcd.h
index 4dcf8446dbcd..c293dd044599 100644
--- a/include/linux/usb/hcd.h
+++ b/include/linux/usb/hcd.h
@@ -23,6 +23,7 @@
23 23
24#include <linux/rwsem.h> 24#include <linux/rwsem.h>
25#include <linux/interrupt.h> 25#include <linux/interrupt.h>
26#include <linux/idr.h>
26 27
27#define MAX_TOPO_LEVEL 6 28#define MAX_TOPO_LEVEL 6
28 29
@@ -630,7 +631,7 @@ extern void usb_set_device_state(struct usb_device *udev,
630 631
631/* exported only within usbcore */ 632/* exported only within usbcore */
632 633
633extern struct list_head usb_bus_list; 634extern struct idr usb_bus_idr;
634extern struct mutex usb_bus_list_lock; 635extern struct mutex usb_bus_list_lock;
635extern wait_queue_head_t usb_kill_urb_queue; 636extern wait_queue_head_t usb_kill_urb_queue;
636 637