staging: vc04_services: Remove typedef struct
authorHarsha Sharma <harshasharmaiitr@gmail.com>
Fri, 22 Sep 2017 07:37:03 +0000 (13:07 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Sep 2017 08:53:45 +0000 (10:53 +0200)
commita050fe5ceb94524cf20afe62f1ee9f8438aff463
tree61dc32b2d0463b50a9624f78ad9c514ddfbb1df4
parentee0dd523bcb98bb58608b7354a321ee28d6f42f0
staging: vc04_services: Remove typedef struct

Remove typedef from struct as linux-kernel coding style tends to
avoid using typedefs

Done using following coccinelle semantic patch

@r1@
type T;
@@

typedef struct { ... } T;

@script:python c1@
T2;
T << r1.T;
@@
if T[-2:] =="_t" or T[-2:] == "_T":
        coccinelle.T2 = T[:-2];
else:
        coccinelle.T2 = T;

print T, coccinelle.T2

@r2@
type r1.T;
identifier c1.T2;
@@
-typedef
struct
+ T2
{ ... }
-T
;

@r3@
type r1.T;
identifier c1.T2;
@@
-T
+struct T2

Signed-off-by: Harsha Sharma <harshasharmaiitr@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c