diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2016-09-13 17:41:26 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-13 15:13:16 +0200 |
commit | 1d191e1057aec4f9f635556d49f4f0ef90b704d4 (patch) | |
tree | ebe897f0f73870d626f273763470200dc99b073d /drivers/staging/wilc1000/coreconfigurator.h | |
parent | 65f5c3ea622dfca230e96e5098603f1df9e0a902 (diff) | |
download | op-kernel-dev-1d191e1057aec4f9f635556d49f4f0ef90b704d4.zip op-kernel-dev-1d191e1057aec4f9f635556d49f4f0ef90b704d4.tar.gz |
Staging: wilc1000: Remove struct typedef
Remove typedef from structure tstrRSSI as using typedef for
structures is not preferred.
Found using coccinelle:
@r1@
type T;
@@
typedef struct { ... } T;
@script:python c1@
T2;
T << r1.T;
@@
if T[-2:] =="_t":
coccinelle.T2 = T[:-2];
print T
else:
coccinelle.T2=T;
@r2@
type r1.T;
identifier c1.T2;
@@
-typedef
struct
+ T2
{ ... }
-T
;
@r3@
type r1.T;
identifier c1.T2;
@@
- T
+ struct T2
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/coreconfigurator.h')
-rw-r--r-- | drivers/staging/wilc1000/coreconfigurator.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/wilc1000/coreconfigurator.h b/drivers/staging/wilc1000/coreconfigurator.h index 076e06a..cff1698 100644 --- a/drivers/staging/wilc1000/coreconfigurator.h +++ b/drivers/staging/wilc1000/coreconfigurator.h @@ -70,11 +70,11 @@ enum connect_status { CONNECT_STS_FORCE_16_BIT = 0xFFFF }; -typedef struct { +struct tstrRSSI { u8 u8Full; u8 u8Index; s8 as8RSSI[NUM_RSSI]; -} tstrRSSI; +}; struct network_info { s8 rssi; @@ -93,7 +93,7 @@ struct network_info { u8 *ies; u16 ies_len; void *join_params; - tstrRSSI str_rssi; + struct tstrRSSI str_rssi; u64 tsf_hi; }; |