]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
Staging: wilc1000: Remove struct typedef
authorBhumika Goyal <bhumirks@gmail.com>
Tue, 13 Sep 2016 12:11:26 +0000 (17:41 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Sep 2016 13:13:16 +0000 (15:13 +0200)
commit1d191e1057aec4f9f635556d49f4f0ef90b704d4
treeebe897f0f73870d626f273763470200dc99b073d
parent65f5c3ea622dfca230e96e5098603f1df9e0a902
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>
drivers/staging/wilc1000/coreconfigurator.h