linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RESEND 01/12] staging: wilc1000: wilc_wlan_txq_get_first: add argument struct wilc
@ 2015-10-29  3:18 Glen Lee
  2015-10-29  3:18 ` [PATCH RESEND 02/12] staging: wilc1000: linux_wlan_firmware_download: change argument Glen Lee
                   ` (10 more replies)
  0 siblings, 11 replies; 16+ messages in thread
From: Glen Lee @ 2015-10-29  3:18 UTC (permalink / raw)
  To: gregkh
  Cc: devel, linux-wireless, tony.cho, glen.lee, leo.kim, austin.shin,
	adel.noureldin, adham.abozaeid, Nicolas.FERRE

This patch adds new argument struct wilc and use it instead of g_linux_wlan.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
---
 drivers/staging/wilc1000/wilc_wlan.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c
index c026657..6c7cbd1 100644
--- a/drivers/staging/wilc1000/wilc_wlan.c
+++ b/drivers/staging/wilc1000/wilc_wlan.c
@@ -563,17 +563,17 @@ int wilc_wlan_txq_add_mgmt_pkt(void *priv, u8 *buffer, u32 buffer_size, wilc_tx_
 	return 1;
 }
 
-static struct txq_entry_t *wilc_wlan_txq_get_first(void)
+static struct txq_entry_t *wilc_wlan_txq_get_first(struct wilc *wilc)
 {
 	wilc_wlan_dev_t *p = &g_wlan;
 	struct txq_entry_t *tqe;
 	unsigned long flags;
 
-	spin_lock_irqsave(&g_linux_wlan->txq_spinlock, flags);
+	spin_lock_irqsave(&wilc->txq_spinlock, flags);
 
 	tqe = p->txq_head;
 
-	spin_unlock_irqrestore(&g_linux_wlan->txq_spinlock, flags);
+	spin_unlock_irqrestore(&wilc->txq_spinlock, flags);
 
 
 	return tqe;
@@ -855,7 +855,7 @@ int wilc_wlan_handle_txq(struct net_device *dev, u32 *pu32TxqCount)
 		 *      build the vmm list
 		 **/
 		PRINT_D(TX_DBG, "Getting the head of the TxQ\n");
-		tqe = wilc_wlan_txq_get_first();
+		tqe = wilc_wlan_txq_get_first(wilc);
 		i = 0;
 		sum = 0;
 		do {
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2015-11-05  3:04 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-29  3:18 [PATCH RESEND 01/12] staging: wilc1000: wilc_wlan_txq_get_first: add argument struct wilc Glen Lee
2015-10-29  3:18 ` [PATCH RESEND 02/12] staging: wilc1000: linux_wlan_firmware_download: change argument Glen Lee
2015-10-29  3:18 ` [PATCH RESEND 03/12] staging: wilc1000: wilc_wlan_txq_remove_from_head: add new argument dev Glen Lee
2015-10-29  3:18 ` [PATCH RESEND 04/12] staging: wilc1000: wilc_wlan_txq_add_mgmt_pkt: " Glen Lee
2015-10-29  3:18 ` [PATCH RESEND 05/12] staging: wilc1000: wilc_wlan_txq_add_to_tail: add argument net_device Glen Lee
2015-10-29  3:18 ` [PATCH RESEND 06/12] staging: wilc1000: linux_wlan_start_firmware: change argument with dev Glen Lee
2015-10-29  3:18 ` [PATCH RESEND 07/12] staging: wilc1000: wilc_wlan_init: add argument struct net_device Glen Lee
2015-10-29  3:18 ` [PATCH RESEND 08/12] staging: wilc1000: wilc_wlan_init: add argument net_device Glen Lee
2015-10-29  3:18 ` [PATCH RESEND 09/12] staging: wilc1000: linux_wlan_get_firmware: change argument p_nic with dev Glen Lee
2015-10-29  3:18 ` [PATCH RESEND 10/12] staging: wilc1000: wl_wlan_cleanup: add argument struct wilc Glen Lee
2015-10-29  3:18 ` [PATCH RESEND 11/12] staging: wilc1000: rename os_context to wilc Glen Lee
2015-11-04 20:40   ` Greg KH
2015-10-29  3:18 ` [PATCH RESEND 12/12] staging: wilc1000: add argument wilc and use it instead of g_linux_wlan Glen Lee
2015-11-04 20:41   ` Greg KH
2015-11-05  2:22     ` glen lee
2015-11-05  3:04       ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).