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 /drivers/staging/media/atomisp/i2c/ov8858.c | |
parent | ec62464e83beacd8b8856e8313a4cae4a91ea90b (diff) |
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 'drivers/staging/media/atomisp/i2c/ov8858.c')
0 files changed, 0 insertions, 0 deletions