staging: wilc1000: remove function pointer cfg_wid_get_val
authorGlen Lee <glen.lee@atmel.com>
Fri, 2 Oct 2015 05:22:09 +0000 (14:22 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Oct 2015 10:02:15 +0000 (12:02 +0200)
This patch removes cfg_wid_get_val and call the function
wilc_wlan_cfg_get_wid_value. 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 fbc0829126713a1e9e086cabec5c5cc03ee2658a..a9a8d2467fccd403130b8f8e31cfa8c707f0f0c6 100644 (file)
@@ -1833,7 +1833,7 @@ int wilc_wlan_cfg_get_val(u32 wid, u8 *buffer, u32 buffer_size)
 {
        int ret;
 
-       ret = mac_cfg.cfg_wid_get_val((u16)wid, buffer, buffer_size);
+       ret = wilc_wlan_cfg_get_wid_value((u16)wid, buffer, buffer_size);
 
        return ret;
 }
index bbf3e02259719c614f6da67c80a7bf30d025a63f..938693905956024eca9ab7e422561be1dcc62c8b 100644 (file)
@@ -296,7 +296,6 @@ typedef struct {
 } wilc_cfg_rsp_t;
 
 typedef struct {
-       int (*cfg_wid_get_val)(u16, u8 *, u32);
        int (*rx_indicate)(u8 *, int, wilc_cfg_rsp_t *);
        int (*cfg_init)(wilc_debug_func);
 } wilc_cfg_func_t;
index 7007381a1ad8948f950c2850cecd811f384be7e9..55d208326566c4490a30edde566a16d816629de3 100644 (file)
@@ -426,7 +426,7 @@ int wilc_wlan_cfg_get_wid(u8 *frame, u32 offset, u16 id)
        return 2;
 }
 
-static int wilc_wlan_cfg_get_wid_value(u16 wid, u8 *buffer, u32 buffer_size)
+int wilc_wlan_cfg_get_wid_value(u16 wid, u8 *buffer, u32 buffer_size)
 {
        u32 type = (wid >> 12) & 0xf;
        int i, 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_get_wid_value,
        wilc_wlan_cfg_indicate_rx,
        wilc_wlan_cfg_init,
 };
index 2edd74938464526038c89058dd249c6cb2eaf783..0efa2c57dbf72f42ffbba1c2d20b3e3644a8d96b 100644 (file)
@@ -32,5 +32,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);
 
 #endif
This page took 0.027281 seconds and 5 git commands to generate.