Re: [PATCH v4 3/4] gpio: adp5585: Add Analog Devices ADP5585 support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Andy,

On Mon, Jun 10, 2024 at 07:29:09PM +0300, Andy Shevchenko wrote:
> On Mon, Jun 10, 2024 at 6:26 PM Laurent Pinchart wrote:
> > On Mon, Jun 10, 2024 at 06:15:40PM +0300, Andy Shevchenko wrote:
> > > Sat, Jun 08, 2024 at 05:16:32PM +0300, Laurent Pinchart kirjoitti:
> 
> ...
> 
> > > > +static const struct platform_device_id adp5585_gpio_id_table[] = {
> > > > +   { "adp5585-gpio" },
> > >
> > > > +   { /* Sentinel */ },
> > >
> > > Drop the comma.
> >
> > I prefer keeping it.
> 
> For what reason?
> The sentinel should be runtime and compile time one. Why should we
> make our lives worse by neglecting help from a compiler?

Do you really think there's a risk here and that this will make a
difference ? I do appreciate most of your review comments, even
pendantic ones, as they can help making the code better, but we also all
need a little bit of space to breathe when it comes to coding style.

> > > > +};

-- 
Regards,

Laurent Pinchart




[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux