Staging: wilc1000: Remove all struct typedefs from .c files
PATCH 1/1 Staging: wilc1000: Remove all struct typedefs from .c files
Using typedef for a structure type is not suggested in Linux kernel coding style guidelines. So remove typedefs from structures wilc_sdio_t,wilc_spi_t and wilc_mac_cfg_t.
The following semantic patch detects cases:
@tn1@
type td;
@@
typedef struct { ... } td;
@script:python tf@
td << tn1.td;
tdres;
@@
coccinelle.tdres = td;
@@ type tn1.td;
identifier tf.tdres;
@@
-typedef
struct
+ tdres
{ ... }
-td
;
@@ type tn1.td;
identifier tf.tdres;
@@
-td
+ struct tdres
--- drivers/staging/wilc1000/wilc_sdio.c | 8 ++++---- drivers/staging/wilc1000/wilc_spi.c | 8 ++++---- drivers/staging/wilc1000/wilc_wlan_cfg.c | 10 +++++----- 3 files changed, 13 insertions(+), 13 deletions(-)
drivers/staging/wilc1000/wilc_sdio.c +4 -4
@@ -30,15 +30,15 @@ static const struct sdio_device_id wilc_sdio_ids[] = {#define WILC_SDIO_BLOCK_SIZE 512 -typedef struct { +struct wilc_sdio_t {bool irq_gpio;u32 block_size;int nint;#define MAX_NUN_INT_THRPT_ENH2 (5)/* Max num interrupts allowed in registers 0xf7, 0xf8 */ int has_thrpt_enh3; -}wilc_sdio_t ; +}; -static wilc_sdio_t g_sdio; +static struct wilc_sdio_t g_sdio;static int sdio_write_reg (struct wilc *wilc,u32 addr,u32 data);static int sdio_read_reg (struct wilc *wilc,u32 addr,u32 *data);
@@ -675,7 +675,7 @@ static int sdio_init(struct wilc *wilc, bool resume)u32 chipid;if (!resume) { -memset (&g_sdio,0 ,sizeof (wilc_sdio_t)); +memset (&g_sdio,0 ,sizeof (struct wilc_sdio_t )); g_sdio.irq_gpio = wilc->dev_irq_num; }
drivers/staging/wilc1000/wilc_spi.c +4 -4
@@ -24,13 +24,13 @@#include "wilc_wlan.h" #include "wilc_wfi_netdevice.h" -typedef struct { +struct wilc_spi_t {int crc_off;int nint;int has_thrpt_enh; -}wilc_spi_t ; +}; -static wilc_spi_t g_spi; +static struct wilc_spi_t g_spi;static int wilc_spi_read (struct wilc *wilc,u32 ,u8 *,u32 );static int wilc_spi_write (struct wilc *wilc,u32 ,u8 *,u32 );
@@ -867,7 +867,7 @@ static int wilc_spi_init(struct wilc *wilc, bool resume)return 1 ; } -memset (&g_spi,0 ,sizeof (wilc_spi_t)); +memset (&g_spi,0 ,sizeof (struct wilc_spi_t ));/** * configure protocol
drivers/staging/wilc1000/wilc_wlan_cfg.c +5 -5
@@ -19,7 +19,7 @@* ********************************************/ -typedef struct { +struct wilc_mac_cfg_t {wilc_debug_func dPrint;int mac_status;
@@ -40,9 +40,9 @@ typedef struct {u8 firmware_info[8 ];u8 scan_result[256 ];u8 scan_result1[256 ]; -} wilc_mac_cfg_t; +}; -static wilc_mac_cfg_t g_mac; +static struct wilc_mac_cfg_t g_mac;static wilc_cfg_byte_t g_cfg_byte[] = { {WID_BSS_TYPE ,0 },
@@ -349,7 +349,7 @@ static void wilc_wlan_parse_response_frame(u8 *info, int size)static int wilc_wlan_parse_info_frame (u8 *info,int size) { -wilc_mac_cfg_t *pd = &g_mac; +struct wilc_mac_cfg_t *pd = &g_mac;u32 wid, len;int type =WILC_CFG_RSP_STATUS ;
@@ -539,7 +539,7 @@ int wilc_wlan_cfg_indicate_rx(struct wilc *wilc, u8 *frame, int size,int wilc_wlan_cfg_init (wilc_debug_func func) { -memset ((void *)&g_mac,0 ,sizeof (wilc_mac_cfg_t)); +memset ((void *)&g_mac,0 ,sizeof (struct wilc_mac_cfg_t )); g_mac.dPrint = func;return 1 ; }
Signature · 1 line
1.9.1
Greg KH
maintainerQuoted 45 lines · Bhumika Goyal
Using typedef for a structure type is not suggested in Linux kernel coding style guidelines. So remove typedefs from structures wilc_sdio_t,wilc_spi_t and
wilc_mac_cfg_t.The following semantic patch detects cases:
@tn1@
type td;
@@typedef struct { ... } td;
@script:python tf@
td << tn1.td;
tdres;
@@
coccinelle.tdres = td;@@ type tn1.td;
identifier tf.tdres;
@@(quoted diff) +1
-2-typedef struct + tdres { ... } -td ;@@ type tn1.td;
identifier tf.tdres;
@@
-td
+ struct tdresSigned-off-by Bhumika Goyal <[email protected]>--- drivers/staging/wilc1000/wilc_sdio.c | 8 ++++---- drivers/staging/wilc1000/wilc_spi.c | 8 ++++---- drivers/staging/wilc1000/wilc_wlan_cfg.c | 10 +++++----- 3 files changed, 13 insertions(+), 13 deletions(-)drivers/staging/wilc1000/wilc_sdio.c +0
-0
drivers/staging/wilc1000/wilc_sdio.c static const struct sdio_device_id wilc_sdio_ids[] = { · line 33
Quoted 5 lines
drivers/staging/wilc1000/wilc_sdio.c +1
-1@@ -30,15 +30,15 @@ static const struct sdio_device_id wilc_sdio_ids[] = {#define WILC_SDIO_BLOCK_SIZE 512 -typedef struct { +struct wilc_sdio_t {
Why use "_t" as a suffix on the struct name? We know it's a structure, so just use 'struct wilc_sdio' please.
thanks,
greg k-h
PATCH v2 1/1 Staging: wilc1000: Remove and rename struct typedefs from .c files
In reply to Bhumika GoyalUsing typedef for a structure type is not suggested in Linux kernel coding style guidelines. So remove typedefs from structures wilc_sdio_t, wilc_spi_t and wilc_mac_cfg_t. Also remove '_t' suffix from the names.
The following semantic patch detects cases:
@tn1@
type td;
@@
typedef struct { ... } td;
@script:python tf@
td << tn1.td;
tdres;
@@
coccinelle.tdres = td;
@@ type tn1.td;
identifier tf.tdres;
@@
-typedef
struct
+ tdres
{ ... }
-td
;
@@ type tn1.td;
identifier tf.tdres;
@@
-td
+ struct tdres
---
Changes in v2:
* Remove '_t' suffix from the struct names.
drivers/staging/wilc1000/wilc_sdio.c | 8 ++++---- drivers/staging/wilc1000/wilc_spi.c | 8 ++++---- drivers/staging/wilc1000/wilc_wlan_cfg.c | 10 +++++----- 3 files changed, 13 insertions(+), 13 deletions(-)
drivers/staging/wilc1000/wilc_sdio.c +4 -4
@@ -30,15 +30,15 @@ static const struct sdio_device_id wilc_sdio_ids[] = {#define WILC_SDIO_BLOCK_SIZE 512 -typedef struct { +struct wilc_sdio {bool irq_gpio;u32 block_size;int nint;#define MAX_NUN_INT_THRPT_ENH2 (5)/* Max num interrupts allowed in registers 0xf7, 0xf8 */ int has_thrpt_enh3; -}wilc_sdio_t ; +}; -static wilc_sdio_t g_sdio; +static struct wilc_sdio g_sdio;static int sdio_write_reg (struct wilc *wilc,u32 addr,u32 data);static int sdio_read_reg (struct wilc *wilc,u32 addr,u32 *data);
@@ -675,7 +675,7 @@ static int sdio_init(struct wilc *wilc, bool resume)u32 chipid;if (!resume) { -memset (&g_sdio,0 ,sizeof (wilc_sdio_t)); +memset (&g_sdio,0 ,sizeof (struct wilc_sdio )); g_sdio.irq_gpio = wilc->dev_irq_num; }
drivers/staging/wilc1000/wilc_spi.c +4 -4
@@ -24,13 +24,13 @@#include "wilc_wlan.h" #include "wilc_wfi_netdevice.h" -typedef struct { +struct wilc_spi {int crc_off;int nint;int has_thrpt_enh; -}wilc_spi_t ; +}; -static wilc_spi_t g_spi; +static struct wilc_spi g_spi;static int wilc_spi_read (struct wilc *wilc,u32 ,u8 *,u32 );static int wilc_spi_write (struct wilc *wilc,u32 ,u8 *,u32 );
@@ -867,7 +867,7 @@ static int wilc_spi_init(struct wilc *wilc, bool resume)return 1 ; } -memset (&g_spi,0 ,sizeof (wilc_spi_t)); +memset (&g_spi,0 ,sizeof (struct wilc_spi ));/** * configure protocol
drivers/staging/wilc1000/wilc_wlan_cfg.c +5 -5
@@ -19,7 +19,7 @@* ********************************************/ -typedef struct { +struct wilc_mac_cfg {wilc_debug_func dPrint;int mac_status;
@@ -40,9 +40,9 @@ typedef struct {u8 firmware_info[8 ];u8 scan_result[256 ];u8 scan_result1[256 ]; -} wilc_mac_cfg_t; +}; -static wilc_mac_cfg_t g_mac; +static struct wilc_mac_cfg g_mac;static struct wilc_cfg_byte g_cfg_byte[] = { {WID_BSS_TYPE ,0 },
@@ -349,7 +349,7 @@ static void wilc_wlan_parse_response_frame(u8 *info, int size)static int wilc_wlan_parse_info_frame (u8 *info,int size) { -wilc_mac_cfg_t *pd = &g_mac; +struct wilc_mac_cfg *pd = &g_mac;u32 wid, len;int type =WILC_CFG_RSP_STATUS ;
@@ -539,7 +539,7 @@ int wilc_wlan_cfg_indicate_rx(struct wilc *wilc, u8 *frame, int size,int wilc_wlan_cfg_init (wilc_debug_func func) { -memset ((void *)&g_mac,0 ,sizeof (wilc_mac_cfg_t)); +memset ((void *)&g_mac,0 ,sizeof (struct wilc_mac_cfg )); g_mac.dPrint = func;return 1 ; }
Signature · 1 line
1.9.1
Re: [Outreachy kernel] [PATCH v2] Staging: wilc1000: Remove and rename struct typedefs from .c files
Quoted 27 lines · Bhumika Goyal
Using typedef for a structure type is not suggested in Linux kernel coding style guidelines. So remove typedefs from structures
wilc_sdio_t,wilc_spi_tandwilc_mac_cfg_t. Also remove '_t' suffix from the names.The following semantic patch detects cases:
@tn1@
type td;
@@typedef struct { ... } td;
@script:python tf@
td << tn1.td;
tdres;
@@
coccinelle.tdres = td;@@ type tn1.td;
identifier tf.tdres;
@@(quoted diff) +1
-2-typedef struct + tdres { ... } -td ;
Quoted 5 lines
@@ type tn1.td;
identifier tf.tdres;
@@
-td
+ struct tdres
Actually, the semantic patch performs part of the transformation. So it would be good to say in the commit message that you have changed the names by hand.
julia
Quoted 126 lines
Signed-off-by Bhumika Goyal <[email protected]>---
Changes in v2:
* Remove '_t' suffix from the struct names.drivers/staging/wilc1000/wilc_sdio.c | 8 ++++---- drivers/staging/wilc1000/wilc_spi.c | 8 ++++---- drivers/staging/wilc1000/wilc_wlan_cfg.c | 10 +++++----- 3 files changed, 13 insertions(+), 13 deletions(-)drivers/staging/wilc1000/wilc_sdio.c +4
-4@@ -30,15 +30,15 @@ static const struct sdio_device_id wilc_sdio_ids[] = {#define WILC_SDIO_BLOCK_SIZE 512 -typedef struct { +struct wilc_sdio {bool irq_gpio;u32 block_size;int nint;#define MAX_NUN_INT_THRPT_ENH2 (5)/* Max num interrupts allowed in registers 0xf7, 0xf8 */ int has_thrpt_enh3; -}wilc_sdio_t ; +}; -static wilc_sdio_t g_sdio; +static struct wilc_sdio g_sdio;static int sdio_write_reg (struct wilc *wilc,u32 addr,u32 data);static int sdio_read_reg (struct wilc *wilc,u32 addr,u32 *data);@@ -675,7 +675,7 @@ static int sdio_init(struct wilc *wilc, bool resume)u32 chipid;if (!resume) { -memset (&g_sdio,0 ,sizeof (wilc_sdio_t)); +memset (&g_sdio,0 ,sizeof (struct wilc_sdio )); g_sdio.irq_gpio = wilc->dev_irq_num; }drivers/staging/wilc1000/wilc_spi.c +4
-4@@ -24,13 +24,13 @@#include "wilc_wlan.h" #include "wilc_wfi_netdevice.h" -typedef struct { +struct wilc_spi {int crc_off;int nint;int has_thrpt_enh; -}wilc_spi_t ; +}; -static wilc_spi_t g_spi; +static struct wilc_spi g_spi;static int wilc_spi_read (struct wilc *wilc,u32 ,u8 *,u32 );static int wilc_spi_write (struct wilc *wilc,u32 ,u8 *,u32 );@@ -867,7 +867,7 @@ static int wilc_spi_init(struct wilc *wilc, bool resume)return 1 ; } -memset (&g_spi,0 ,sizeof (wilc_spi_t)); +memset (&g_spi,0 ,sizeof (struct wilc_spi ));/** * configure protocol drivers/staging/wilc1000/wilc_wlan_cfg.c +5
-6@@ -19,7 +19,7 @@* ********************************************/ -typedef struct { +struct wilc_mac_cfg {wilc_debug_func dPrint;int mac_status;@@ -40,9 +40,9 @@ typedef struct {u8 firmware_info[8 ];u8 scan_result[256 ];u8 scan_result1[256 ]; -} wilc_mac_cfg_t; +}; -static wilc_mac_cfg_t g_mac; +static struct wilc_mac_cfg g_mac;static struct wilc_cfg_byte g_cfg_byte[] = { {WID_BSS_TYPE ,0 },@@ -349,7 +349,7 @@ static void wilc_wlan_parse_response_frame(u8 *info, int size)static int wilc_wlan_parse_info_frame (u8 *info,int size) { -wilc_mac_cfg_t *pd = &g_mac; +struct wilc_mac_cfg *pd = &g_mac;u32 wid, len;int type =WILC_CFG_RSP_STATUS ;@@ -539,7 +539,7 @@ int wilc_wlan_cfg_indicate_rx(struct wilc *wilc, u8 *frame, int size,int wilc_wlan_cfg_init (wilc_debug_func func) { -memset ((void *)&g_mac,0 ,sizeof (wilc_mac_cfg_t)); +memset ((void *)&g_mac,0 ,sizeof (struct wilc_mac_cfg )); g_mac.dPrint = func;return 1 ; } --1.9.1
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1455982285-17907-1-git-send-email-bhumirks%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Re: [Outreachy kernel] [PATCH v2] Staging: wilc1000: Remove and rename struct typedefs from .c files
Quoted 39 lines · Julia Lawall
Quoted 27 lines · Bhumika Goyal
Using typedef for a structure type is not suggested in Linux kernel coding style guidelines. So remove typedefs from structures
wilc_sdio_t,wilc_spi_tandwilc_mac_cfg_t. Also remove '_t' suffix from the names.The following semantic patch detects cases:
@tn1@
type td;
@@typedef struct { ... } td;
@script:python tf@
td << tn1.td;
tdres;
@@
coccinelle.tdres = td;@@ type tn1.td;
identifier tf.tdres;
@@(quoted diff) +1
-2-typedef struct + tdres { ... } -td ;Quoted 5 lines
@@ type tn1.td;
identifier tf.tdres;
@@
-td
+ struct tdresActually, the semantic patch performs part of the transformation. So it would be good to say in the commit message that you have changed the names by hand.
Quoted 2 lines
julia
Ok will keep it in mind. v3 on the way .
Thanks
Bhumika
Quoted 126 lines
Quoted 126 lines
Signed-off-by Bhumika Goyal <[email protected]>---
Changes in v2:
* Remove '_t' suffix from the struct names.drivers/staging/wilc1000/wilc_sdio.c | 8 ++++---- drivers/staging/wilc1000/wilc_spi.c | 8 ++++---- drivers/staging/wilc1000/wilc_wlan_cfg.c | 10 +++++----- 3 files changed, 13 insertions(+), 13 deletions(-)drivers/staging/wilc1000/wilc_sdio.c +4
-4@@ -30,15 +30,15 @@ static const struct sdio_device_id wilc_sdio_ids[] = {#define WILC_SDIO_BLOCK_SIZE 512 -typedef struct { +struct wilc_sdio {bool irq_gpio;u32 block_size;int nint;#define MAX_NUN_INT_THRPT_ENH2 (5)/* Max num interrupts allowed in registers 0xf7, 0xf8 */ int has_thrpt_enh3; -}wilc_sdio_t ; +}; -static wilc_sdio_t g_sdio; +static struct wilc_sdio g_sdio;static int sdio_write_reg (struct wilc *wilc,u32 addr,u32 data);static int sdio_read_reg (struct wilc *wilc,u32 addr,u32 *data);@@ -675,7 +675,7 @@ static int sdio_init(struct wilc *wilc, bool resume)u32 chipid;if (!resume) { -memset (&g_sdio,0 ,sizeof (wilc_sdio_t)); +memset (&g_sdio,0 ,sizeof (struct wilc_sdio )); g_sdio.irq_gpio = wilc->dev_irq_num; }drivers/staging/wilc1000/wilc_spi.c +4
-4@@ -24,13 +24,13 @@#include "wilc_wlan.h" #include "wilc_wfi_netdevice.h" -typedef struct { +struct wilc_spi {int crc_off;int nint;int has_thrpt_enh; -}wilc_spi_t ; +}; -static wilc_spi_t g_spi; +static struct wilc_spi g_spi;static int wilc_spi_read (struct wilc *wilc,u32 ,u8 *,u32 );static int wilc_spi_write (struct wilc *wilc,u32 ,u8 *,u32 );@@ -867,7 +867,7 @@ static int wilc_spi_init(struct wilc *wilc, bool resume)return 1 ; } -memset (&g_spi,0 ,sizeof (wilc_spi_t)); +memset (&g_spi,0 ,sizeof (struct wilc_spi ));/** * configure protocol drivers/staging/wilc1000/wilc_wlan_cfg.c +5
-6@@ -19,7 +19,7 @@* ********************************************/ -typedef struct { +struct wilc_mac_cfg {wilc_debug_func dPrint;int mac_status;@@ -40,9 +40,9 @@ typedef struct {u8 firmware_info[8 ];u8 scan_result[256 ];u8 scan_result1[256 ]; -} wilc_mac_cfg_t; +}; -static wilc_mac_cfg_t g_mac; +static struct wilc_mac_cfg g_mac;static struct wilc_cfg_byte g_cfg_byte[] = { {WID_BSS_TYPE ,0 },@@ -349,7 +349,7 @@ static void wilc_wlan_parse_response_frame(u8 *info, int size)static int wilc_wlan_parse_info_frame (u8 *info,int size) { -wilc_mac_cfg_t *pd = &g_mac; +struct wilc_mac_cfg *pd = &g_mac;u32 wid, len;int type =WILC_CFG_RSP_STATUS ;@@ -539,7 +539,7 @@ int wilc_wlan_cfg_indicate_rx(struct wilc *wilc, u8 *frame, int size,int wilc_wlan_cfg_init (wilc_debug_func func) { -memset ((void *)&g_mac,0 ,sizeof (wilc_mac_cfg_t)); +memset ((void *)&g_mac,0 ,sizeof (struct wilc_mac_cfg )); g_mac.dPrint = func;return 1 ; } --1.9.1
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1455982285-17907-1-git-send-email-bhumirks%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
PATCH v3 1/1 Staging: wilc1000: Remove and rename struct typedefs from .c files
In reply to Bhumika GoyalUsing typedef for a structure type is not suggested in Linux kernel coding style guidelines. So remove typedefs from structures wilc_sdio_t, wilc_spi_t and wilc_mac_cfg_t.
Also remove '_t' suffix from the struct names by hand.
The following semantic patch detects cases:
@tn1@
type td;
@@
typedef struct { ... } td;
@script:python tf@
td << tn1.td;
tdres;
@@
coccinelle.tdres = td;
@@ type tn1.td;
identifier tf.tdres;
@@
-typedef
struct
+ tdres
{ ... }
-td
;
@@ type tn1.td;
identifier tf.tdres;
@@
-td
+ struct tdres
---
Changes in v2:
* Remove '_t' suffix from the struct names. Changes in v3:
* Modify the commit message as '_t' was dropped by hand.
drivers/staging/wilc1000/wilc_sdio.c | 8 ++++---- drivers/staging/wilc1000/wilc_spi.c | 8 ++++---- drivers/staging/wilc1000/wilc_wlan_cfg.c | 10 +++++----- 3 files changed, 13 insertions(+), 13 deletions(-)
drivers/staging/wilc1000/wilc_sdio.c +4 -4
@@ -30,15 +30,15 @@ static const struct sdio_device_id wilc_sdio_ids[] = {#define WILC_SDIO_BLOCK_SIZE 512 -typedef struct { +struct wilc_sdio {bool irq_gpio;u32 block_size;int nint;#define MAX_NUN_INT_THRPT_ENH2 (5)/* Max num interrupts allowed in registers 0xf7, 0xf8 */ int has_thrpt_enh3; -}wilc_sdio_t ; +}; -static wilc_sdio_t g_sdio; +static struct wilc_sdio g_sdio;static int sdio_write_reg (struct wilc *wilc,u32 addr,u32 data);static int sdio_read_reg (struct wilc *wilc,u32 addr,u32 *data);
@@ -675,7 +675,7 @@ static int sdio_init(struct wilc *wilc, bool resume)u32 chipid;if (!resume) { -memset (&g_sdio,0 ,sizeof (wilc_sdio_t)); +memset (&g_sdio,0 ,sizeof (struct wilc_sdio )); g_sdio.irq_gpio = wilc->dev_irq_num; }
drivers/staging/wilc1000/wilc_spi.c +4 -4
@@ -24,13 +24,13 @@#include "wilc_wlan.h" #include "wilc_wfi_netdevice.h" -typedef struct { +struct wilc_spi {int crc_off;int nint;int has_thrpt_enh; -}wilc_spi_t ; +}; -static wilc_spi_t g_spi; +static struct wilc_spi g_spi;static int wilc_spi_read (struct wilc *wilc,u32 ,u8 *,u32 );static int wilc_spi_write (struct wilc *wilc,u32 ,u8 *,u32 );
@@ -861,7 +861,7 @@ static int wilc_spi_init(struct wilc *wilc, bool resume)return 1 ; } -memset (&g_spi,0 ,sizeof (wilc_spi_t)); +memset (&g_spi,0 ,sizeof (struct wilc_spi ));/** * configure protocol
drivers/staging/wilc1000/wilc_wlan_cfg.c +5 -5
@@ -19,7 +19,7 @@* ********************************************/ -typedef struct { +struct wilc_mac_cfg {wilc_debug_func dPrint;int mac_status;
@@ -40,9 +40,9 @@ typedef struct {u8 firmware_info[8 ];u8 scan_result[256 ];u8 scan_result1[256 ]; -} wilc_mac_cfg_t; +}; -static wilc_mac_cfg_t g_mac; +static struct wilc_mac_cfg g_mac;static struct wilc_cfg_byte g_cfg_byte[] = { {WID_BSS_TYPE ,0 },
@@ -349,7 +349,7 @@ static void wilc_wlan_parse_response_frame(u8 *info, int size)static int wilc_wlan_parse_info_frame (u8 *info,int size) { -wilc_mac_cfg_t *pd = &g_mac; +struct wilc_mac_cfg *pd = &g_mac;u32 wid, len;int type =WILC_CFG_RSP_STATUS ;
@@ -539,7 +539,7 @@ int wilc_wlan_cfg_indicate_rx(struct wilc *wilc, u8 *frame, int size,int wilc_wlan_cfg_init (wilc_debug_func func) { -memset ((void *)&g_mac,0 ,sizeof (wilc_mac_cfg_t)); +memset ((void *)&g_mac,0 ,sizeof (struct wilc_mac_cfg )); g_mac.dPrint = func;return 1 ; }
Signature · 1 line
1.9.1