Skip to content
Commit eab638a8 authored by Srishti Sharma's avatar Srishti Sharma Committed by Mauro Carvalho Chehab
Browse files

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: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent ec62464e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment