]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: wilc1000: wilc_handle_isr: add argument wilc to wilc_handle_isr
authorGlen Lee <glen.lee@atmel.com>
Tue, 27 Oct 2015 09:27:40 +0000 (18:27 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Oct 2015 23:08:47 +0000 (08:08 +0900)
This patch add new argument wilc to wilc_handle_isr and pass wilc to
the function.
It is void type for now because wilc_wlan.c was implemented platform
independently at the beginning (linux_wlan.c is implementation of LINUX part),
so the header file which defines struct wilc cannot be included at this moment,
but this driver is dedicated to LINUX so wilc_wlan.c and linux_wlan.c will be
merged. After that, this void type will be changed with struct wilc as well as
other functions which are using void type in wilc_wlan.h.

Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c
drivers/staging/wilc1000/linux_wlan_sdio.c
drivers/staging/wilc1000/wilc_wlan.c
drivers/staging/wilc1000/wilc_wlan.h

index ac2bc0661b538ac7c6e582d6e7f717d0accfe7df..54e077dbbd8468fac99d11277384f7975a2af673 100644 (file)
@@ -261,7 +261,7 @@ irqreturn_t isr_bh_routine(int irq, void *userdata)
        }
 
        PRINT_D(INT_DBG, "Interrupt received BH\n");
-       wilc_handle_isr();
+       wilc_handle_isr(wilc);
 
        return IRQ_HANDLED;
 }
index 1f8d8743f37610158c80d1a5fb900519ae25b197..4aff953a88f167880959ee12973bc11deecec734 100644 (file)
@@ -27,7 +27,6 @@ struct wilc_sdio {
 };
 
 struct sdio_func *local_sdio_func;
-extern void wilc_handle_isr(void);
 
 static unsigned int sdio_default_speed;
 
@@ -42,9 +41,13 @@ static const struct sdio_device_id wilc_sdio_ids[] = {
 
 static void wilc_sdio_interrupt(struct sdio_func *func)
 {
+       struct wilc_sdio *wl_sdio;
+
+       wl_sdio = sdio_get_drvdata(func);
+
 #ifndef WILC_SDIO_IRQ_GPIO
        sdio_release_host(func);
-       wilc_handle_isr();
+       wilc_handle_isr(wl_sdio->wilc);
        sdio_claim_host(func);
 #endif
 }
index 67b0c52d97fa64b6801b332d616cccf28e7fc098..be6f631f880ecec3c1b166447eb73eae978250f2 100644 (file)
@@ -1353,7 +1353,7 @@ _end_:
        wilc_wlan_handle_rxq();
 }
 
-void wilc_handle_isr(void)
+void wilc_handle_isr(void *wilc)
 {
        u32 int_status;
 
index bd89689fbf100eb7eedb7add55314c3762449eab..a07375ba38d7d3b66a0ec01d1ffa66d9229c05a6 100644 (file)
@@ -301,7 +301,7 @@ int wilc_wlan_stop(void);
 int wilc_wlan_txq_add_net_pkt(void *priv, u8 *buffer, u32 buffer_size,
                              wilc_tx_complete_func_t func);
 int wilc_wlan_handle_txq(u32 *pu32TxqCount);
-void wilc_handle_isr(void);
+void wilc_handle_isr(void *wilc);
 void wilc_wlan_cleanup(void);
 int wilc_wlan_cfg_set(int start, u32 wid, u8 *buffer, u32 buffer_size,
                      int commit, u32 drvHandler);