]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Bluetooth: Remove typedefs nsh_t and dtl1_info_t
authorHimangi Saraogi <himangi774@gmail.com>
Wed, 13 Aug 2014 09:22:27 +0000 (14:52 +0530)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 14 Aug 2014 06:49:26 +0000 (08:49 +0200)
commit66f4e0e43a0389a7f2814f0cc6df39019aead54f
treed754ff9f008059766d0e5dcb92b3b606afaa1338
parentad709d4867985de0b239d01702f9ac6bb578099e
Bluetooth: Remove typedefs nsh_t and dtl1_info_t

The Linux kernel coding style guidelines suggest not using typedefs
for structure types. This patch gets rid of the typedefs for nsh_t and
dtl1_info_t. Also, the name of the struct is changed to drop the _t,
to make the name look less typedef-like.

The following Coccinelle semantic patch detects the case for dtl1_info_t
and a similar patch finds the nsh_t case:

@tn@
identifier i;
type td;
@@

-typedef
 struct i { ... }
-td
 ;

@@
type tn.td;
identifier tn.i;
@@

-td
+ struct i

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/dtl1_cs.c