staging: wilc1000: remove function pointer cfg_wid_set
authorGlen Lee <glen.lee@atmel.com>
Fri, 2 Oct 2015 05:22:07 +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 cfg_wid_set and call the function
wilc_wlan_cfg_set_wid instead. Remove static from the function declaration.

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 9475ec7569cf2ede1198d4da118b5e8008c83b7a..442fe5f10842e6cb52055be0c5d14b82ee8e9f7d 100644 (file)
@@ -9,6 +9,7 @@
 
 #include "wilc_wlan_if.h"
 #include "wilc_wlan.h"
+#include "wilc_wlan_cfg.h"
 
 /********************************************
  *
@@ -1763,8 +1764,8 @@ int wilc_wlan_cfg_set(int start, u32 wid, u8 *buffer, u32 buffer_size,
                p->cfg_frame_offset = 0;
 
        offset = p->cfg_frame_offset;
-       ret_size = mac_cfg.cfg_wid_set(p->cfg_frame.frame, offset, (u16)wid,
-                                      buffer, buffer_size);
+       ret_size = wilc_wlan_cfg_set_wid(p->cfg_frame.frame, offset, (u16)wid,
+                                        buffer, buffer_size);
        offset += ret_size;
        p->cfg_frame_offset = offset;
 
index 1ba433cc77606d42271edbf763b971f3dfdcfb37..90417d9d39eef6eb06fd4821ba8bb48bff847fe5 100644 (file)
@@ -296,7 +296,6 @@ typedef struct {
 } wilc_cfg_rsp_t;
 
 typedef struct {
-       int (*cfg_wid_set)(u8 *, u32, u16, u8 *, int);
        int (*cfg_wid_get)(u8 *, u32, u16);
        int (*cfg_wid_get_val)(u16, u8 *, u32);
        int (*rx_indicate)(u8 *, int, wilc_cfg_rsp_t *);
index d761a372eeea20c8cd69d07ed08347e49d3fc4b4..e5296c189de4838a47c030a34248be53449eb7c7 100644 (file)
@@ -386,7 +386,7 @@ static int wilc_wlan_parse_info_frame(u8 *info, int size)
  *
  ********************************************/
 
-static int wilc_wlan_cfg_set_wid(u8 *frame, u32 offset, u16 id, u8 *buf, int size)
+int wilc_wlan_cfg_set_wid(u8 *frame, u32 offset, u16 id, u8 *buf, int size)
 {
        u8 type = (id >> 12) & 0xf;
        int ret = 0;
@@ -566,7 +566,6 @@ static int wilc_wlan_cfg_init(wilc_debug_func func)
 }
 
 wilc_cfg_func_t mac_cfg = {
-       wilc_wlan_cfg_set_wid,
        wilc_wlan_cfg_get_wid,
        wilc_wlan_cfg_get_wid_value,
        wilc_wlan_cfg_indicate_rx,
index ef8835804afb52779e9adb6902c1fcc56138be09..326c716d50457f9979dab8fcf5c4d3eafbbd80a7 100644 (file)
@@ -30,4 +30,6 @@ typedef struct {
        u8 *str;
 } wilc_cfg_str_t;
 
+int wilc_wlan_cfg_set_wid(u8 *frame, u32 offset, u16 id, u8 *buf, int size);
+
 #endif