From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Torokhov Subject: Re: [PATCH v7 1/4] mfd: bd71837: mfd driver for ROHM BD71837 PMIC Date: Thu, 05 Jul 2018 23:38:35 -0700 Message-ID: <31712EE3-4FA5-4A52-8F84-0EDC1AEEF868@gmail.com> References: <7e1888375c979accc402e9ddd7316e528b2ac52c.1529404894.git.matti.vaittinen@fi.rohmeurope.com> <20180704145623.zgei3ehrwdpcu26r@penguin> <20180705075650.GA7683@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20180705075650.GA7683@localhost.localdomain> Sender: linux-kernel-owner@vger.kernel.org To: Matti Vaittinen , Enric Balletbo Serra Cc: Michael Turquette , sboyd@kernel.org, Rob Herring , Mark Rutland , Lee Jones , Liam Girdwood , Mark Brown , Matti Vaittinen , Arnd Bergmann , Sebastian Reichel , chenjh@rock-chips.com, Andrey Smirnov , Linus Walleij , Kate Stewart , =?ISO-8859-1?Q?Heiko_St=FCbner?= , Greg Kroah-Hartman , linux-clk@vger.kernel.org, "devicetree@vger.kernel.org" , linux-kernel , linux-input@vger.kernel.or List-Id: devicetree@vger.kernel.org On July 5, 2018 12:56:50 AM PDT, Matti Vaittinen wrote: >On Wed, Jul 04, 2018 at 06:57:39PM +0200, Enric Balletbo Serra wrote: >> Missatge de Dmitry Torokhov del dia dc= =2E, >4 >> de jul=2E 2018 a les 17:10: >> > >> > Hi Enric, >> > >> > On Tue, Jun 26, 2018 at 11:06:33AM +0200, Enric Balletbo Serra >wrote: >> > > Hi Matti, >> > > >> > > Thanks for the patch, a few comments below, some are feedback I >> > > received when I sent some patches to this subsystem=2E >> > > >> > > Missatge de Matti Vaittinen >del >> > > dia dt=2E, 19 de juny 2018 a les 12:57: >> > > > +}; >> > > > + >> > > > +/* bd71837 multi function cells */ >> > > > +static struct mfd_cell bd71837_mfd_cells[] =3D { >> > > > + { >> > > > + =2Ename =3D "bd71837-clk", >> > > > + }, { >> > > > + =2Ename =3D "bd718xx-pwrkey", >> > > > + =2Eresources =3D &irqs[0], >> > > > + =2Enum_resources =3D ARRAY_SIZE(irqs), >> > > > + }, { >> > > > + =2Ename =3D "bd71837-pmic", >> > > > + }, >> > > nit: no comma at the end >> > >> > Actually, trailing comma is preferred on structures/arrays without >> > sentinels, because if one needs to add a new entry/new member, then >in >> > the diff there will have only one new line added, instead of one >line >> > being changed (adding now necessary comma) and one added=2E >> > >>=20 >> Many thanks for sharing your knowledge! That looks to me a good >> reason=2E > >So in this specific ecample leaving the comma does not help=2E The >opening >brace for new array element would be added to same line where the comma >is, right? Ah, yes, you are right=2E We usually have either: { /* element 1 */ }, { / *element 2 */ }, =2E=2E=2E or: { /* element 1 */ }, { /* element 2 */ }, but I do not think that it is codified in the CodingStyle=2E Thanks=2E --=20 Dmitry