staging: wilc1000: remove typedef from wilc_cfg_rsp_t
authorLeo Kim <leo.kim@atmel.com>
Fri, 6 Nov 2015 02:20:01 +0000 (11:20 +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_rsp_t and
renames it to wilc_cfg_rsp.

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
drivers/staging/wilc1000/wilc_wlan_cfg.c
drivers/staging/wilc1000/wilc_wlan_cfg.h

index c61048b5c54e5a410f4215efebfe82513f4f15de..7b8e70b391cd3220843fff116ba92e1ef88853a2 100644 (file)
@@ -1023,7 +1023,7 @@ static void wilc_wlan_handle_rxq(struct wilc *wilc)
                                                has_packet = 1;
                                        }
                                } else {
-                                       wilc_cfg_rsp_t rsp;
+                                       struct wilc_cfg_rsp rsp;
 
                                        wilc_wlan_cfg_indicate_rx(&buffer[pkt_offset + offset], pkt_len, &rsp);
                                        if (rsp.type == WILC_CFG_RSP) {
index 6c784fd591e6c2a10ec02907fafe409ce7a4457d..368b7ff3c49575c911503870a1016c00bdf18b1d 100644 (file)
@@ -271,10 +271,10 @@ struct wilc_cfg_frame {
        u8 frame[MAX_CFG_FRAME_SIZE];
 };
 
-typedef struct {
+struct wilc_cfg_rsp {
        int type;
        u32 seq_no;
-} wilc_cfg_rsp_t;
+};
 
 int wilc_wlan_firmware_download(const u8 *buffer, u32 buffer_size);
 int wilc_wlan_start(void);
index a34a81cdeb5e1042d39ea28a3f058c2f1cc8a4c5..e23796392e9c16d051f24d23652a824cfbfb1249 100644 (file)
@@ -505,7 +505,7 @@ int wilc_wlan_cfg_get_wid_value(u16 wid, u8 *buffer, u32 buffer_size)
        return ret;
 }
 
-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, struct wilc_cfg_rsp *rsp)
 {
        int ret = 1;
        u8 msg_type;
index 30e60ec4d29f7d56f8163a20dc28feb858470dc5..443b2d5b6db85b02557159f6fb9290652b9e546b 100644 (file)
@@ -33,7 +33,7 @@ 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);
+int wilc_wlan_cfg_indicate_rx(u8 *frame, int size, struct wilc_cfg_rsp *rsp);
 int wilc_wlan_cfg_init(wilc_debug_func func);
 
 #endif