From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759162AbcAKM14 (ORCPT ); Mon, 11 Jan 2016 07:27:56 -0500 Received: from mga01.intel.com ([192.55.52.88]:48090 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751942AbcAKM1x (ORCPT ); Mon, 11 Jan 2016 07:27:53 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,552,1444719600"; d="scan'208";a="890772850" Message-ID: <1452515294.26146.10.camel@linux.intel.com> Subject: Re: [PATCH v4 01/13] tty: serial: 8250: Fix whitespace errors From: Andy Shevchenko To: Anton Wuerfel , Greg Kroah-Hartman Cc: Jiri Slaby , "James E.J. Bottomley" , Helge Deller , Peter Hurley , Heikki Krogerus , Qipeng Zha , Desmond Liu , Wang Long , Matt Redfearn , Paul Burton , Ralf Baechle , Krzysztof Kozlowski , Peter Hung , Soeren Grunewald , Adam Lee , "Maciej S. Szmigiero" , Mans Rullgard , linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org, linux-kernel@i4.cs.fau.de, phillip.raffeck@fau.de Date: Mon, 11 Jan 2016 14:28:14 +0200 In-Reply-To: <1452275039-18787-2-git-send-email-anton.wuerfel@fau.de> References: <1452275039-18787-1-git-send-email-anton.wuerfel@fau.de> <1452275039-18787-2-git-send-email-anton.wuerfel@fau.de> Organization: Intel Finland Oy Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.3-1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2016-01-08 at 18:43 +0100, Anton Wuerfel wrote: > This patch fixes whitespace errors reported by checkpatch to increase > readability. Main focus is on missing spaces after commas in > function headers and macros (like foo,bar edited to foo, bar). > > Signed-off-by: Anton Würfel > Signed-off-by: Phillip Raffeck > CC: linux-kernel@i4.cs.fau.de Cc: looks more standard. > --- a/drivers/tty/serial/8250/8250_accent.c > +++ b/drivers/tty/serial/8250/8250_accent.c > @@ -10,7 +10,7 @@ >  #include >  #include >   > -#define PORT(_base,_irq) \ > +#define PORT(_base, _irq) \ >   { \ >   .iobase = _base, \ >   .irq = _irq, \ > While those are okay, I would suggest to make a macro in drivers/…/8250.h one for all, something like this: #define 8250_PORT_FLAGS(_base, _irq, _flags) … .flags          = UPF_BOOT_AUTOCONF | (_flags) \ #define 8250_PORT(_base, _irq) 8250_PORT_FLAGS(_base, _irq, 0) And use it. > --- a/drivers/tty/serial/8250/8250_boca.c > +++ b/drivers/tty/serial/8250/8250_boca.c > @@ -10,7 +10,7 @@ >  #include >  #include >   > -#define PORT(_base,_irq) \ > +#define PORT(_base, _irq) \ >   { \ >   .iobase = _base, \ >   .irq = _irq, \ > > --- a/drivers/tty/serial/8250/8250_exar_st16c554.c > +++ b/drivers/tty/serial/8250/8250_exar_st16c554.c > @@ -13,7 +13,7 @@ >  #include >  #include >   > -#define PORT(_base,_irq) \ > +#define PORT(_base, _irq) \ >   { \ >   .iobase = _base, \ >   .irq = _irq, \ > > --- a/drivers/tty/serial/8250/8250_fourport.c > +++ b/drivers/tty/serial/8250/8250_fourport.c > @@ -10,7 +10,7 @@ >  #include >  #include >   > -#define PORT(_base,_irq) > \ > +#define PORT(_base, _irq) > \ >   { > \ >   .iobase = _base, > \ >   .irq = _irq, > \ -- Andy Shevchenko Intel Finland Oy