diff options
author | matt mooney <mfm@muteddisk.com> | 2011-05-06 03:47:49 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-05-06 14:26:14 -0700 |
commit | ddbc9bc9e96298f1b3a35296f47f4424d2b78bad (patch) | |
tree | 967f825186adf654c1f8a7eeb4e0c65719395fd9 | |
parent | 09e0650b25d1b75b16c4b6faede2f537d55b6b18 (diff) | |
download | linux-ddbc9bc9e96298f1b3a35296f47f4424d2b78bad.tar.bz2 |
staging: usbip: vhci.h: coding style cleanup
Fix a few alignment issues and remove extraneous lines.
Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/usbip/vhci.h | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/drivers/staging/usbip/vhci.h b/drivers/staging/usbip/vhci.h index d3f1e5f8a960..6e17a0048646 100644 --- a/drivers/staging/usbip/vhci.h +++ b/drivers/staging/usbip/vhci.h @@ -20,7 +20,6 @@ #include <linux/platform_device.h> #include <linux/usb/hcd.h> - struct vhci_device { struct usb_device *udev; @@ -33,12 +32,11 @@ struct vhci_device { /* speed of a remote device */ enum usb_device_speed speed; - /* vhci root-hub port to which this device is attached */ + /* vhci root-hub port to which this device is attached */ __u32 rhport; struct usbip_device ud; - /* lock for the below link lists */ spinlock_t priv_lock; @@ -54,7 +52,6 @@ struct vhci_device { wait_queue_head_t waitq_tx; }; - /* urb->hcpriv, use container_of() */ struct vhci_priv { unsigned long seqnum; @@ -64,7 +61,6 @@ struct vhci_priv { struct urb *urb; }; - struct vhci_unlink { /* seqnum of this request */ unsigned long seqnum; @@ -85,12 +81,12 @@ struct vhci_unlink { /* for usb_bus.hcpriv */ struct vhci_hcd { - spinlock_t lock; + spinlock_t lock; - u32 port_status[VHCI_NPORTS]; + u32 port_status[VHCI_NPORTS]; - unsigned resuming:1; - unsigned long re_timeout; + unsigned resuming:1; + unsigned long re_timeout; atomic_t seqnum; @@ -102,11 +98,9 @@ struct vhci_hcd { struct vhci_device vdev[VHCI_NPORTS]; }; - extern struct vhci_hcd *the_controller; extern struct attribute_group dev_attr_group; - /*-------------------------------------------------------------------------*/ /* prototype declaration */ @@ -116,10 +110,9 @@ void rh_port_disconnect(int rhport); int vhci_rx_loop(void *data); int vhci_tx_loop(void *data); -struct urb *pickup_urb_and_free_priv(struct vhci_device *vdev, - __u32 seqnum); +struct urb *pickup_urb_and_free_priv(struct vhci_device *vdev, __u32 seqnum); -#define hardware (&the_controller->pdev.dev) +#define hardware (&the_controller->pdev.dev) static inline struct vhci_device *port_to_vdev(__u32 port) { |