aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb.h
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2006-08-30 15:46:48 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-09-27 14:58:57 -0400
commitb6956ffa595db97656d5901ca8fec77ef272d41a (patch)
treede10e798f086de6d0fcda6f8d2423ef176d13839 /include/linux/usb.h
parentd1ad4ea331e78a5ff90eda7718da31bcbc1a9c38 (diff)
usbcore: store each usb_device's level in the tree
This patch (as778) adds a field to struct usb_device to store the device's level in the USB tree. In itself this number isn't really important. But the overhead is very low, and in a later patch it will be used for preventing bogus warnings from the lockdep checker. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/usb.h')
-rw-r--r--include/linux/usb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h
index c66303285a45..df5c93eb3ce9 100644
--- a/include/linux/usb.h
+++ b/include/linux/usb.h
@@ -348,6 +348,7 @@ struct usb_device {
348 348
349 unsigned short bus_mA; /* Current available from the bus */ 349 unsigned short bus_mA; /* Current available from the bus */
350 u8 portnum; /* Parent port number (origin 1) */ 350 u8 portnum; /* Parent port number (origin 1) */
351 u8 level; /* Number of USB hub ancestors */
351 352
352 int have_langid; /* whether string_langid is valid */ 353 int have_langid; /* whether string_langid is valid */
353 int string_langid; /* language ID for strings */ 354 int string_langid; /* language ID for strings */