staging: wilc1000: remove function pointer rx_indicate
authorGlen Lee <glen.lee@atmel.com>
Fri, 2 Oct 2015 05:22:10 +0000 (14:22 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Oct 2015 10:02:15 +0000 (12:02 +0200)
This patch removes function pointer rx_indicate and just call the function
wilc_wlan_cfg_indicate_rx instead. Remove static from the function
declration.

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

index a9a8d2467fccd403130b8f8e31cfa8c707f0f0c6..cd4598aa151eea423ad914ab10bb6657cb933054 100644 (file)
@@ -1198,7 +1198,7 @@ static void wilc_wlan_handle_rxq(void)
 
 
 
-                                       mac_cfg.rx_indicate(&buffer[pkt_offset + offset], pkt_len, &rsp);
+                                       wilc_wlan_cfg_indicate_rx(&buffer[pkt_offset + offset], pkt_len, &rsp);
                                        if (rsp.type == WILC_CFG_RSP) {
                                                /**
                                                 *      wake up the waiting task...
index 938693905956024eca9ab7e422561be1dcc62c8b..5099cf0d60111ec061a2d3ec751981fe61291c75 100644 (file)
@@ -296,7 +296,6 @@ typedef struct {
 } wilc_cfg_rsp_t;
 
 typedef struct {
-       int (*rx_indicate)(u8 *, int, wilc_cfg_rsp_t *);
        int (*cfg_init)(wilc_debug_func);
 } wilc_cfg_func_t;
 
index 55d208326566c4490a30edde566a16d816629de3..2916d453495d705c26458a346ce54f5bda29773c 100644 (file)
@@ -505,7 +505,7 @@ int wilc_wlan_cfg_get_wid_value(u16 wid, u8 *buffer, u32 buffer_size)
        return ret;
 }
 
-static int wilc_wlan_cfg_indicate_rx(u8 *frame, int size, wilc_cfg_rsp_t *rsp)
+int wilc_wlan_cfg_indicate_rx(u8 *frame, int size, wilc_cfg_rsp_t *rsp)
 {
        int ret = 1;
        u8 msg_type;
@@ -566,6 +566,5 @@ static int wilc_wlan_cfg_init(wilc_debug_func func)
 }
 
 wilc_cfg_func_t mac_cfg = {
-       wilc_wlan_cfg_indicate_rx,
        wilc_wlan_cfg_init,
 };
index 0efa2c57dbf72f42ffbba1c2d20b3e3644a8d96b..fe2c03829d6b2e4177ca44dfa21b0453ac7e7ad0 100644 (file)
@@ -33,5 +33,6 @@ typedef struct {
 int wilc_wlan_cfg_set_wid(u8 *frame, u32 offset, u16 id, u8 *buf, int size);
 int wilc_wlan_cfg_get_wid(u8 *frame, u32 offset, u16 id);
 int wilc_wlan_cfg_get_wid_value(u16 wid, u8 *buffer, u32 buffer_size);
+int wilc_wlan_cfg_indicate_rx(u8 *frame, int size, wilc_cfg_rsp_t *rsp);
 
 #endif