aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-14 12:20:37 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-14 12:20:37 -0400
commitfa286188ce0fce994c3fc2bddcafeb948834591f (patch)
tree72abc08a625c4341fc6606fdd547ed320b81fc66 /include/linux/usb.h
parente44694e858ed000ef11ee37861c7f7c86d8ddbda (diff)
Revert "usb: move struct usb_device->children to struct usb_hub_port->child"
This reverts commit bebc56d58dc780539777d2b1ca80df5566e2ad87. The call here is fragile and not well thought out, so revert it, it's not fully baked yet and I don't want this to go into 3.5. Cc: Lan Tianyu <tianyu.lan@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/usb.h')
-rw-r--r--include/linux/usb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h
index 69163a0abe91..5483cd70390b 100644
--- a/include/linux/usb.h
+++ b/include/linux/usb.h
@@ -424,6 +424,7 @@ enum usb_device_removable {
424 * access from userspace 424 * access from userspace
425 * @usbfs_dentry: usbfs dentry entry for the device 425 * @usbfs_dentry: usbfs dentry entry for the device
426 * @maxchild: number of ports if hub 426 * @maxchild: number of ports if hub
427 * @children: child devices - USB devices that are attached to this hub
427 * @quirks: quirks of the whole device 428 * @quirks: quirks of the whole device
428 * @urbnum: number of URBs submitted for the whole device 429 * @urbnum: number of URBs submitted for the whole device
429 * @active_duration: total time device is not suspended 430 * @active_duration: total time device is not suspended
@@ -490,6 +491,7 @@ struct usb_device {
490 struct list_head filelist; 491 struct list_head filelist;
491 492
492 int maxchild; 493 int maxchild;
494 struct usb_device **children;
493 495
494 u32 quirks; 496 u32 quirks;
495 atomic_t urbnum; 497 atomic_t urbnum;
@@ -515,8 +517,6 @@ static inline struct usb_device *interface_to_usbdev(struct usb_interface *intf)
515 517
516extern struct usb_device *usb_get_dev(struct usb_device *dev); 518extern struct usb_device *usb_get_dev(struct usb_device *dev);
517extern void usb_put_dev(struct usb_device *dev); 519extern void usb_put_dev(struct usb_device *dev);
518extern struct usb_device *usb_get_hub_child_device(struct usb_device *hdev,
519 int port1);
520 520
521/* USB device locking */ 521/* USB device locking */
522#define usb_lock_device(udev) device_lock(&(udev)->dev) 522#define usb_lock_device(udev) device_lock(&(udev)->dev)