diff options
| author | Srishti Sharma <srishtishar@gmail.com> | 2017-10-07 09:52:02 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-10-31 06:02:16 -0400 |
| commit | eab638a8ae6e874a226e61b57e35032ee461e0bf (patch) | |
| tree | 32dc82f42ca5a255d013c19cb0b2046a431405ba /tools/perf/scripts/python/bin | |
| parent | media: atmel-isc: get rid of an unused var (diff) | |
| download | linux-eab638a8ae6e874a226e61b57e35032ee461e0bf.tar.gz linux-eab638a8ae6e874a226e61b57e35032ee461e0bf.zip | |
media: Staging: media: atomisp: pci: Eliminate use of typedefs for struct
The use of typedefs for struct is discouraged, and hence can be
eliminated. Done using the following semantic patch by coccinelle.
@r1@
type T;
@@
typedef struct {...} T;
@script: python p@
T << r1.T;
T1;
@@
if T[-2:] == "_t" or T[-2:] == "_T":
coccinelle.T1 = T[:-2]
else:
coccinelle.T1 = T
print T, T1
@r2@
type r1.T;
identifier p.T1;
@@
- typedef
struct
+ T1
{
...
}
- T
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
