From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753483AbaHMRR2 (ORCPT ); Wed, 13 Aug 2014 13:17:28 -0400 Received: from senator.holtmann.net ([87.106.208.187]:34545 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752852AbaHMRR0 (ORCPT ); Wed, 13 Aug 2014 13:17:26 -0400 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: [PATCH] bluetooth/btuart_cs: Remove typedef btuart_info_t From: Marcel Holtmann In-Reply-To: <20140813092139.GA3189@himangi-Dell> Date: Wed, 13 Aug 2014 10:18:01 -0700 Cc: "Gustavo F. Padovan" , Johan Hedberg , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, Julia Lawall Content-Transfer-Encoding: 7bit Message-Id: <845CA98D-39F0-4F2F-8ADF-7DBE1D7BA4ED@holtmann.org> References: <20140813092139.GA3189@himangi-Dell> To: Himangi Saraogi X-Mailer: Apple Mail (2.1878.6) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Himangi, > The Linux kernel coding style guidelines suggest not using typedefs > for structure types. This patch gets rid of the typedef for > btuart_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/btuart_cs.c | 27 ++++++++++++++------------- > 1 file changed, 14 insertions(+), 13 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel