staging/gdm72xx: gdm_usb coding style clean up
authorMacpaul Lin <macpaul@gmail.com>
Wed, 12 Sep 2012 09:49:24 +0000 (17:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Sep 2012 16:52:10 +0000 (09:52 -0700)
gdm_usb.* coding style clean up.

Signed-off-by: Macpaul Lin <macpaul@gmail.com>
Cc: Paul Stewart <pstew@chromium.org>
Cc: Ben Chan <benchan@chromium.org>
Cc: Sage Ahn <syahn@gctsemi.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm72xx/gdm_usb.c
drivers/staging/gdm72xx/gdm_usb.h

index 41e08a7..6d306f7 100644 (file)
 
 MODULE_DEVICE_TABLE(usb, id_table);
 
-#define TX_BUF_SIZE    2048
+#define TX_BUF_SIZE            2048
 #if defined(CONFIG_WIMAX_GDM72XX_WIMAX2)
-#define RX_BUF_SIZE    (128*1024)      /* For packet aggregation */
+#define RX_BUF_SIZE            (128*1024)      /* For packet aggregation */
 #else
-#define RX_BUF_SIZE    2048
+#define RX_BUF_SIZE            2048
 #endif
 
 #define GDM7205_PADDING                256
@@ -39,7 +39,7 @@ MODULE_DEVICE_TABLE(usb, id_table);
 #define B2H(x)         __be16_to_cpu(x)
 #define DB2H(x)                __be32_to_cpu(x)
 
-#define DOWNLOAD_CONF_VALUE            0x21
+#define DOWNLOAD_CONF_VALUE    0x21
 
 #ifdef CONFIG_WIMAX_GDM72XX_K_MODE
 
@@ -48,7 +48,7 @@ static LIST_HEAD(k_list);
 static DEFINE_SPINLOCK(k_lock);
 static int k_mode_stop;
 
-#define K_WAIT_TIME    (2 * HZ / 100)
+#define K_WAIT_TIME            (2 * HZ / 100)
 
 #endif /* CONFIG_WIMAX_GDM72XX_K_MODE */
 
index ecb891f..f2c5451 100644 (file)
@@ -18,8 +18,8 @@
 #include <linux/usb.h>
 #include <linux/list.h>
 
-#define B_DIFF_DL_DRV          (1<<4)
-#define B_DOWNLOAD                     (1 << 5)
+#define B_DIFF_DL_DRV          (1 << 4)
+#define B_DOWNLOAD             (1 << 5)
 #define MAX_NR_SDU_BUF         64
 
 struct usb_tx {
@@ -29,7 +29,7 @@ struct usb_tx {
 #endif
        struct tx_cxt           *tx_cxt;
 
-       struct urb      *urb;
+       struct urb              *urb;
        u8                      *buf;
 
        void (*callback)(void *cb_data);
@@ -44,14 +44,14 @@ struct tx_cxt {
        struct list_head        pending_list;
 #endif
 
-       spinlock_t                      lock;
+       spinlock_t              lock;
 };
 
 struct usb_rx {
        struct list_head        list;
        struct rx_cxt           *rx_cxt;
 
-       struct urb      *urb;
+       struct urb              *urb;
        u8                      *buf;
 
        void (*callback)(void *cb_data, void *data, int len);
@@ -61,7 +61,7 @@ struct usb_rx {
 struct rx_cxt {
        struct list_head        free_list;
        struct list_head        used_list;
-       spinlock_t                      lock;
+       spinlock_t              lock;
 };
 
 struct usbwm_dev {
@@ -76,8 +76,8 @@ struct usbwm_dev {
        struct list_head        list;
 #endif
 
-       struct tx_cxt   tx;
-       struct rx_cxt   rx;
+       struct tx_cxt           tx;
+       struct rx_cxt           rx;
 
        int padding;
 };