]> git.neil.brown.name Git - history.git/commitdiff
USB: move a internal usbfs only structure out of a public header file.
authorGreg Kroah-Hartman <greg@kroah.com>
Tue, 30 Nov 2004 04:10:16 +0000 (20:10 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 30 Nov 2004 04:10:16 +0000 (20:10 -0800)
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/usb/core/usb.h
include/linux/usbdevice_fs.h

index 30d2cf7dd7624cdc365b542fd34be12ea9780e49..4035ff925c995308529a71f9d057032bf3ffc1ae 100644 (file)
@@ -33,3 +33,18 @@ extern struct usb_driver usbfs_driver;
 extern struct file_operations usbfs_devices_fops;
 extern struct file_operations usbfs_device_file_operations;
 extern void usbfs_conn_disc_event(void);
+
+struct dev_state {
+       struct list_head list;      /* state list */
+       struct usb_device *dev;
+       struct file *file;
+       spinlock_t lock;            /* protects the async urb lists */
+       struct list_head async_pending;
+       struct list_head async_completed;
+       wait_queue_head_t wait;     /* wake up if a request completed */
+       unsigned int discsignr;
+       struct task_struct *disctask;
+       void __user *disccontext;
+       unsigned long ifclaimed;
+};
+
index af49afaf7bb41dd7876006465900a63b19592909..aed8193eb4201328c814d1e3d04e7069cdd63574 100644 (file)
@@ -144,29 +144,4 @@ struct usbdevfs_hub_portinfo {
 #define USBDEVFS_DISCONNECT        _IO('U', 22)
 #define USBDEVFS_CONNECT           _IO('U', 23)
 
-/* --------------------------------------------------------------------- */
-
-#ifdef __KERNEL__
-
-#include <linux/list.h>
-#include <asm/semaphore.h>
-
-
-struct dev_state {
-       struct list_head list;      /* state list */
-       struct usb_device *dev;
-       struct file *file;
-       spinlock_t lock;            /* protects the async urb lists */
-       struct list_head async_pending;
-       struct list_head async_completed;
-       wait_queue_head_t wait;     /* wake up if a request completed */
-       unsigned int discsignr;
-       struct task_struct *disctask;
-       void __user *disccontext;
-       unsigned long ifclaimed;
-};
-
-#endif /* __KERNEL__ */
-
-/* --------------------------------------------------------------------- */
 #endif /* _LINUX_USBDEVICE_FS_H */