diff options
author | Pekka Enberg <penberg@cs.helsinki.fi> | 2009-01-08 11:32:14 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 17:53:16 -0400 |
commit | eb62f3eaf7ff1e021a0f066a0f04ee45d0d1eadb (patch) | |
tree | 733b085c1e8cb9da750a7f04baeebf2fb9a17f34 /drivers/staging/winbond/wb35rx.c | |
parent | 0c59dbaadf1bebdccacd616f3ebf375d81027f02 (diff) |
Staging: w35und: typedef removal
This patch removes some typedefs from the driver code. I also removed some
unused structs I spotted while removing the typedefs.
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Acked-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/winbond/wb35rx.c')
-rw-r--r-- | drivers/staging/winbond/wb35rx.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/staging/winbond/wb35rx.c b/drivers/staging/winbond/wb35rx.c index 029d91892a8..bffebf926d3 100644 --- a/drivers/staging/winbond/wb35rx.c +++ b/drivers/staging/winbond/wb35rx.c | |||
@@ -84,7 +84,7 @@ static u16 Wb35Rx_indicate(struct ieee80211_hw *hw) | |||
84 | struct wbsoft_priv *priv = hw->priv; | 84 | struct wbsoft_priv *priv = hw->priv; |
85 | phw_data_t pHwData = &priv->sHwData; | 85 | phw_data_t pHwData = &priv->sHwData; |
86 | DESCRIPTOR RxDes; | 86 | DESCRIPTOR RxDes; |
87 | PWB35RX pWb35Rx = &pHwData->Wb35Rx; | 87 | struct wb35_rx *pWb35Rx = &pHwData->Wb35Rx; |
88 | u8 * pRxBufferAddress; | 88 | u8 * pRxBufferAddress; |
89 | u16 PacketSize; | 89 | u16 PacketSize; |
90 | u16 stmp, BufferSize, stmp2 = 0; | 90 | u16 stmp, BufferSize, stmp2 = 0; |
@@ -162,7 +162,7 @@ static void Wb35Rx_Complete(struct urb *urb) | |||
162 | struct ieee80211_hw *hw = urb->context; | 162 | struct ieee80211_hw *hw = urb->context; |
163 | struct wbsoft_priv *priv = hw->priv; | 163 | struct wbsoft_priv *priv = hw->priv; |
164 | phw_data_t pHwData = &priv->sHwData; | 164 | phw_data_t pHwData = &priv->sHwData; |
165 | PWB35RX pWb35Rx = &pHwData->Wb35Rx; | 165 | struct wb35_rx *pWb35Rx = &pHwData->Wb35Rx; |
166 | u8 * pRxBufferAddress; | 166 | u8 * pRxBufferAddress; |
167 | u32 SizeCheck; | 167 | u32 SizeCheck; |
168 | u16 BulkLength; | 168 | u16 BulkLength; |
@@ -239,7 +239,7 @@ static void Wb35Rx(struct ieee80211_hw *hw) | |||
239 | { | 239 | { |
240 | struct wbsoft_priv *priv = hw->priv; | 240 | struct wbsoft_priv *priv = hw->priv; |
241 | phw_data_t pHwData = &priv->sHwData; | 241 | phw_data_t pHwData = &priv->sHwData; |
242 | PWB35RX pWb35Rx = &pHwData->Wb35Rx; | 242 | struct wb35_rx *pWb35Rx = &pHwData->Wb35Rx; |
243 | u8 * pRxBufferAddress; | 243 | u8 * pRxBufferAddress; |
244 | struct urb *urb = pWb35Rx->RxUrb; | 244 | struct urb *urb = pWb35Rx->RxUrb; |
245 | int retv; | 245 | int retv; |
@@ -302,7 +302,7 @@ void Wb35Rx_start(struct ieee80211_hw *hw) | |||
302 | { | 302 | { |
303 | struct wbsoft_priv *priv = hw->priv; | 303 | struct wbsoft_priv *priv = hw->priv; |
304 | phw_data_t pHwData = &priv->sHwData; | 304 | phw_data_t pHwData = &priv->sHwData; |
305 | PWB35RX pWb35Rx = &pHwData->Wb35Rx; | 305 | struct wb35_rx *pWb35Rx = &pHwData->Wb35Rx; |
306 | 306 | ||
307 | // Allow only one thread to run into the Wb35Rx() function | 307 | // Allow only one thread to run into the Wb35Rx() function |
308 | if (atomic_inc_return(&pWb35Rx->RxFireCounter) == 1) { | 308 | if (atomic_inc_return(&pWb35Rx->RxFireCounter) == 1) { |
@@ -315,7 +315,7 @@ void Wb35Rx_start(struct ieee80211_hw *hw) | |||
315 | //===================================================================================== | 315 | //===================================================================================== |
316 | static void Wb35Rx_reset_descriptor( phw_data_t pHwData ) | 316 | static void Wb35Rx_reset_descriptor( phw_data_t pHwData ) |
317 | { | 317 | { |
318 | PWB35RX pWb35Rx = &pHwData->Wb35Rx; | 318 | struct wb35_rx *pWb35Rx = &pHwData->Wb35Rx; |
319 | u32 i; | 319 | u32 i; |
320 | 320 | ||
321 | pWb35Rx->ByteReceived = 0; | 321 | pWb35Rx->ByteReceived = 0; |
@@ -331,7 +331,7 @@ static void Wb35Rx_reset_descriptor( phw_data_t pHwData ) | |||
331 | 331 | ||
332 | unsigned char Wb35Rx_initial(phw_data_t pHwData) | 332 | unsigned char Wb35Rx_initial(phw_data_t pHwData) |
333 | { | 333 | { |
334 | PWB35RX pWb35Rx = &pHwData->Wb35Rx; | 334 | struct wb35_rx *pWb35Rx = &pHwData->Wb35Rx; |
335 | 335 | ||
336 | // Initial the Buffer Queue | 336 | // Initial the Buffer Queue |
337 | Wb35Rx_reset_descriptor( pHwData ); | 337 | Wb35Rx_reset_descriptor( pHwData ); |
@@ -342,7 +342,7 @@ unsigned char Wb35Rx_initial(phw_data_t pHwData) | |||
342 | 342 | ||
343 | void Wb35Rx_stop(phw_data_t pHwData) | 343 | void Wb35Rx_stop(phw_data_t pHwData) |
344 | { | 344 | { |
345 | PWB35RX pWb35Rx = &pHwData->Wb35Rx; | 345 | struct wb35_rx *pWb35Rx = &pHwData->Wb35Rx; |
346 | 346 | ||
347 | // Canceling the Irp if already sends it out. | 347 | // Canceling the Irp if already sends it out. |
348 | if (pWb35Rx->EP3vm_state == VM_RUNNING) { | 348 | if (pWb35Rx->EP3vm_state == VM_RUNNING) { |
@@ -356,7 +356,7 @@ void Wb35Rx_stop(phw_data_t pHwData) | |||
356 | // Needs process context | 356 | // Needs process context |
357 | void Wb35Rx_destroy(phw_data_t pHwData) | 357 | void Wb35Rx_destroy(phw_data_t pHwData) |
358 | { | 358 | { |
359 | PWB35RX pWb35Rx = &pHwData->Wb35Rx; | 359 | struct wb35_rx *pWb35Rx = &pHwData->Wb35Rx; |
360 | 360 | ||
361 | do { | 361 | do { |
362 | msleep(10); // Delay for waiting function enter 940623.1.a | 362 | msleep(10); // Delay for waiting function enter 940623.1.a |