From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932698AbcAKMu3 (ORCPT ); Mon, 11 Jan 2016 07:50:29 -0500 Received: from mga14.intel.com ([192.55.52.115]:40758 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932303AbcAKMu1 (ORCPT ); Mon, 11 Jan 2016 07:50:27 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,552,1444719600"; d="scan'208";a="878980410" From: "Shevchenko, Andriy" To: "gregkh@linuxfoundation.org" , "anton.wuerfel@fau.de" CC: "linux-kernel@vger.kernel.org" , "mail@maciej.szmigiero.name" , "desmondl@broadcom.com" , "Zha, Qipeng" , "heikki.krogerus@linux.intel.com" , "long.wanglong@huawei.com" , "soeren.grunewald@desy.de" , "deller@gmx.de" , "jslaby@suse.com" , "phillip.raffeck@fau.de" , "paul.burton@imgtec.com" , "hpeter@gmail.com" , "ralf@linux-mips.org" , "linux-kernel@i4.cs.fau.de" , "mans@mansr.com" , "adam.lee@canonical.com" , "jejb@parisc-linux.org" , "linux-parisc@vger.kernel.org" , "peter@hurleysoftware.com" , "matt.redfearn@imgtec.com" , "k.kozlowski@samsung.com" Subject: Re: [PATCH v4 01/13] tty: serial: 8250: Fix whitespace errors Thread-Topic: [PATCH v4 01/13] tty: serial: 8250: Fix whitespace errors Thread-Index: AQHRTG6g23xRPjsY5E6tMRrhwlK61Q== Date: Mon, 11 Jan 2016 12:50:18 +0000 Message-ID: <1452516646.26146.22.camel@intel.com> References: <1452275039-18787-1-git-send-email-anton.wuerfel@fau.de> <1452275039-18787-2-git-send-email-anton.wuerfel@fau.de> <1452515294.26146.10.camel@linux.intel.com> In-Reply-To: <1452515294.26146.10.camel@linux.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.237.72.86] Content-Type: text/plain; charset="utf-8" Content-ID: MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id u0BCoXlL031584 On Mon, 2016-01-11 at 14:28 +0200, Andy Shevchenko wrote: > 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, > > \ 8250_PORT() > > > > 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. #define 8250_FOURPORT(_base, _irq) 8250_PORT_FLAGS(_base, _irq, UPF_FOURPORT) > > --- 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, > > > > \ 8250_FOURPORT() -- Andy Shevchenko Intel Finland Oy --------------------------------------------------------------------- Intel Finland Oy Registered Address: PL 281, 00181 Helsinki Business Identity Code: 0357606 - 4 Domiciled in Helsinki This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.