From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lee Jones Subject: Re: [PATCH v7 1/4] mfd: bd71837: mfd driver for ROHM BD71837 PMIC Date: Thu, 5 Jul 2018 06:52:26 +0100 Message-ID: <20180705055226.GJ496@dell> References: <7e1888375c979accc402e9ddd7316e528b2ac52c.1529404894.git.matti.vaittinen@fi.rohmeurope.com> <20180704145623.zgei3ehrwdpcu26r@penguin> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Enric Balletbo Serra Cc: Dmitry Torokhov , matti.vaittinen@fi.rohmeurope.com, Michael Turquette , sboyd@kernel.org, Rob Herring , Mark Rutland , Liam Girdwood , Mark Brown , Matti Vaittinen , Arnd Bergmann , Sebastian Reichel , chenjh@rock-chips.com, Andrey Smirnov , Linus Walleij , Kate Stewart , Heiko =?iso-8859-1?Q?St=FCbner?= , Greg Kroah-Hartman , linux-clk@vger.kernel.org, "devicetree@vger.kernel.org" , linux-kernel List-Id: devicetree@vger.kernel.org On Wed, 04 Jul 2018, Enric Balletbo Serra wrote: > Missatge de Dmitry Torokhov del dia dc., 4 > de jul. 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. > > > > > > Missatge de Matti Vaittinen del > > > dia dt., 19 de juny 2018 a les 12:57: > > > > +}; > > > > + > > > > +/* bd71837 multi function cells */ > > > > +static struct mfd_cell bd71837_mfd_cells[] = { > > > > + { > > > > + .name = "bd71837-clk", > > > > + }, { > > > > + .name = "bd718xx-pwrkey", > > > > + .resources = &irqs[0], > > > > + .num_resources = ARRAY_SIZE(irqs), > > > > + }, { > > > > + .name = "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. [...] > Dmitry, I really appreciate this kind of comments, especially when > there is a justification, so I can learn more and more to do better > patches. +1 -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog