diff options
author | Harsha Sharma <harshasharmaiitr@gmail.com> | 2017-09-22 13:07:03 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-09-22 10:53:45 +0200 |
commit | a050fe5ceb94524cf20afe62f1ee9f8438aff463 (patch) | |
tree | 61dc32b2d0463b50a9624f78ad9c514ddfbb1df4 /drivers/iio/trigger/stm32-timer-trigger.c | |
parent | ee0dd523bcb98bb58608b7354a321ee28d6f42f0 (diff) | |
download | linux-a050fe5ceb94524cf20afe62f1ee9f8438aff463.tar.gz linux-a050fe5ceb94524cf20afe62f1ee9f8438aff463.tar.bz2 linux-a050fe5ceb94524cf20afe62f1ee9f8438aff463.zip |
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>
Diffstat (limited to 'drivers/iio/trigger/stm32-timer-trigger.c')
0 files changed, 0 insertions, 0 deletions