diff options
author | Himangi Saraogi <himangi774@gmail.com> | 2014-08-09 18:47:16 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-08-11 21:19:53 +0200 |
commit | 3fadb06daef958d2ae2d3be363a0cfaa92008b52 (patch) | |
tree | 559b89b587ca5f428b2c243ab177077c1ccc89b1 /drivers/net/wan/farsync.c | |
parent | airo_cs: Remove typedef local_info_t (diff) | |
download | linux-3fadb06daef958d2ae2d3be363a0cfaa92008b52.tar.xz linux-3fadb06daef958d2ae2d3be363a0cfaa92008b52.zip |
hdlc: Remove typedefs from struct names
The Linux kernel coding style guidelines suggest not using typedefs
for structure types. This patch gets rid of the typedefs for
fr_hdr and pvc_device. Also, the names of the structs are changed to
drop the _t, to make the name look less typedef-like.
The following Coccinelle semantic patch detects the case fr_hdr and a
similar one detects the case for pvc_device.
@tn1@
type td;
@@
typedef struct { ... } td;
@script:python tf@
td << tn1.td;
tdres;
@@
coccinelle.tdres = td;
@@
type tn1.td;
identifier tf.tdres;
@@
-typedef
struct
+ tdres
{ ... }
-td
;
@@
type tn1.td;
identifier tf.tdres;
@@
-td
+ struct tdres
Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan/farsync.c')
0 files changed, 0 insertions, 0 deletions