diff options
author | Macpaul Lin <macpaul@gmail.com> | 2012-09-12 05:49:24 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-12 12:52:10 -0400 |
commit | 0d660025564343e7c20c096d386f8ef8bacebdcd (patch) | |
tree | 28476efc42271afe6e8db588c165930f38867c8a | |
parent | 6b2a7e0c9bcc0a4df385d1ef8fe5109cea0260e2 (diff) |
staging/gdm72xx: gdm_usb coding style clean up
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>
-rw-r--r-- | drivers/staging/gdm72xx/gdm_usb.c | 10 | ||||
-rw-r--r-- | drivers/staging/gdm72xx/gdm_usb.h | 16 |
2 files changed, 13 insertions, 13 deletions
diff --git a/drivers/staging/gdm72xx/gdm_usb.c b/drivers/staging/gdm72xx/gdm_usb.c index 41e08a7c6855..6d306f7ffffa 100644 --- a/drivers/staging/gdm72xx/gdm_usb.c +++ b/drivers/staging/gdm72xx/gdm_usb.c | |||
@@ -26,11 +26,11 @@ | |||
26 | 26 | ||
27 | MODULE_DEVICE_TABLE(usb, id_table); | 27 | MODULE_DEVICE_TABLE(usb, id_table); |
28 | 28 | ||
29 | #define TX_BUF_SIZE 2048 | 29 | #define TX_BUF_SIZE 2048 |
30 | #if defined(CONFIG_WIMAX_GDM72XX_WIMAX2) | 30 | #if defined(CONFIG_WIMAX_GDM72XX_WIMAX2) |
31 | #define RX_BUF_SIZE (128*1024) /* For packet aggregation */ | 31 | #define RX_BUF_SIZE (128*1024) /* For packet aggregation */ |
32 | #else | 32 | #else |
33 | #define RX_BUF_SIZE 2048 | 33 | #define RX_BUF_SIZE 2048 |
34 | #endif | 34 | #endif |
35 | 35 | ||
36 | #define GDM7205_PADDING 256 | 36 | #define GDM7205_PADDING 256 |
@@ -39,7 +39,7 @@ MODULE_DEVICE_TABLE(usb, id_table); | |||
39 | #define B2H(x) __be16_to_cpu(x) | 39 | #define B2H(x) __be16_to_cpu(x) |
40 | #define DB2H(x) __be32_to_cpu(x) | 40 | #define DB2H(x) __be32_to_cpu(x) |
41 | 41 | ||
42 | #define DOWNLOAD_CONF_VALUE 0x21 | 42 | #define DOWNLOAD_CONF_VALUE 0x21 |
43 | 43 | ||
44 | #ifdef CONFIG_WIMAX_GDM72XX_K_MODE | 44 | #ifdef CONFIG_WIMAX_GDM72XX_K_MODE |
45 | 45 | ||
@@ -48,7 +48,7 @@ static LIST_HEAD(k_list); | |||
48 | static DEFINE_SPINLOCK(k_lock); | 48 | static DEFINE_SPINLOCK(k_lock); |
49 | static int k_mode_stop; | 49 | static int k_mode_stop; |
50 | 50 | ||
51 | #define K_WAIT_TIME (2 * HZ / 100) | 51 | #define K_WAIT_TIME (2 * HZ / 100) |
52 | 52 | ||
53 | #endif /* CONFIG_WIMAX_GDM72XX_K_MODE */ | 53 | #endif /* CONFIG_WIMAX_GDM72XX_K_MODE */ |
54 | 54 | ||
diff --git a/drivers/staging/gdm72xx/gdm_usb.h b/drivers/staging/gdm72xx/gdm_usb.h index ecb891f6a599..f2c54511bb96 100644 --- a/drivers/staging/gdm72xx/gdm_usb.h +++ b/drivers/staging/gdm72xx/gdm_usb.h | |||
@@ -18,8 +18,8 @@ | |||
18 | #include <linux/usb.h> | 18 | #include <linux/usb.h> |
19 | #include <linux/list.h> | 19 | #include <linux/list.h> |
20 | 20 | ||
21 | #define B_DIFF_DL_DRV (1<<4) | 21 | #define B_DIFF_DL_DRV (1 << 4) |
22 | #define B_DOWNLOAD (1 << 5) | 22 | #define B_DOWNLOAD (1 << 5) |
23 | #define MAX_NR_SDU_BUF 64 | 23 | #define MAX_NR_SDU_BUF 64 |
24 | 24 | ||
25 | struct usb_tx { | 25 | struct usb_tx { |
@@ -29,7 +29,7 @@ struct usb_tx { | |||
29 | #endif | 29 | #endif |
30 | struct tx_cxt *tx_cxt; | 30 | struct tx_cxt *tx_cxt; |
31 | 31 | ||
32 | struct urb *urb; | 32 | struct urb *urb; |
33 | u8 *buf; | 33 | u8 *buf; |
34 | 34 | ||
35 | void (*callback)(void *cb_data); | 35 | void (*callback)(void *cb_data); |
@@ -44,14 +44,14 @@ struct tx_cxt { | |||
44 | struct list_head pending_list; | 44 | struct list_head pending_list; |
45 | #endif | 45 | #endif |
46 | 46 | ||
47 | spinlock_t lock; | 47 | spinlock_t lock; |
48 | }; | 48 | }; |
49 | 49 | ||
50 | struct usb_rx { | 50 | struct usb_rx { |
51 | struct list_head list; | 51 | struct list_head list; |
52 | struct rx_cxt *rx_cxt; | 52 | struct rx_cxt *rx_cxt; |
53 | 53 | ||
54 | struct urb *urb; | 54 | struct urb *urb; |
55 | u8 *buf; | 55 | u8 *buf; |
56 | 56 | ||
57 | void (*callback)(void *cb_data, void *data, int len); | 57 | void (*callback)(void *cb_data, void *data, int len); |
@@ -61,7 +61,7 @@ struct usb_rx { | |||
61 | struct rx_cxt { | 61 | struct rx_cxt { |
62 | struct list_head free_list; | 62 | struct list_head free_list; |
63 | struct list_head used_list; | 63 | struct list_head used_list; |
64 | spinlock_t lock; | 64 | spinlock_t lock; |
65 | }; | 65 | }; |
66 | 66 | ||
67 | struct usbwm_dev { | 67 | struct usbwm_dev { |
@@ -76,8 +76,8 @@ struct usbwm_dev { | |||
76 | struct list_head list; | 76 | struct list_head list; |
77 | #endif | 77 | #endif |
78 | 78 | ||
79 | struct tx_cxt tx; | 79 | struct tx_cxt tx; |
80 | struct rx_cxt rx; | 80 | struct rx_cxt rx; |
81 | 81 | ||
82 | int padding; | 82 | int padding; |
83 | }; | 83 | }; |