Return-Path: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: [PATCH] drivers/bluetooth: Remove typedef bt3c_info_t From: Marcel Holtmann In-Reply-To: <20140813091956.GA3117@himangi-Dell> Date: Wed, 13 Aug 2014 10:18:04 -0700 Cc: "Gustavo F. Padovan" , Johan Hedberg , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, Julia Lawall Message-Id: <8A57A222-D7F1-4D54-99CE-E801A39D3D24@holtmann.org> References: <20140813091956.GA3117@himangi-Dell> To: Himangi Saraogi Sender: linux-kernel-owner@vger.kernel.org List-ID: Hi Himangi, > The Linux kernel coding style guidelines suggest not using typedefs > for structure types. This patch gets rid of the typedef for > bt3c_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: > > @tn@ > identifier i; > type td; > @@ > > -typedef > struct i { ... } > -td > ; > > @@ > type tn.td; > identifier tn.i; > @@ > > -td > + struct i > > Signed-off-by: Himangi Saraogi > Acked-by: Julia Lawall > --- > drivers/bluetooth/bt3c_cs.c | 27 ++++++++++++++------------- > 1 file changed, 14 insertions(+), 13 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel