staging: wilc1000: remove typedef from wilc_cfg_frame_t
authorLeo Kim <leo.kim@atmel.com>
Fri, 6 Nov 2015 02:19:59 +0000 (11:19 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
This patch removes typedef from the struct wilc_cfg_frame_t and
renames it to wilc_cfg_frame.

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

index 283c506..c61048b 100644 (file)
@@ -11,7 +11,7 @@ typedef struct {
        wilc_wlan_io_func_t io_func;
        wilc_hif_func_t hif_func;
        int cfg_frame_in_use;
-       wilc_cfg_frame_t cfg_frame;
+       struct wilc_cfg_frame cfg_frame;
        u32 cfg_frame_offset;
        int cfg_seq_no;
 
@@ -1462,7 +1462,7 @@ void wilc_wlan_cleanup(struct net_device *dev)
 static int wilc_wlan_cfg_commit(int type, u32 drv_handler)
 {
        wilc_wlan_dev_t *p = &g_wlan;
-       wilc_cfg_frame_t *cfg = &p->cfg_frame;
+       struct wilc_cfg_frame *cfg = &p->cfg_frame;
        int total_len = p->cfg_frame_offset + 4 + DRIVER_HANDLER_SIZE;
        int seq_no = p->cfg_seq_no % 256;
        int driver_handler = (u32)drv_handler;
index 74f6210..d15c848 100644 (file)
@@ -263,13 +263,13 @@ typedef struct {
 
 #define MAX_CFG_FRAME_SIZE     1468
 
-typedef struct {
+struct wilc_cfg_frame {
        u8 ether_header[14];
        u8 ip_header[20];
        u8 udp_header[8];
        u8 wid_header[8];
        u8 frame[MAX_CFG_FRAME_SIZE];
-} wilc_cfg_frame_t;
+};
 
 typedef struct {
        int (*wlan_tx)(u8 *, u32, wilc_tx_complete_func_t);