lkml.org 
[lkml]   [2020]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v3 1/2] leds: mt6360: Add LED driver for MT6360
On Thu, Sep 10, 2020 at 11:18 AM Pavel Machek <pavel@ucw.cz> wrote:

...

> > > > +enum {
> > > > + MT6360_LED_ISNK1 = 0,
> > > > + MT6360_LED_ISNK2,
> > > > + MT6360_LED_ISNK3,
> > > > + MT6360_LED_ISNK4,
> > > > + MT6360_LED_FLASH1,
> > > > + MT6360_LED_FLASH2,
> > >
> > > > + MT6360_MAX_LEDS,
> > >
> > > No comma for terminator entry.
> > >
> >
> > ACK
>
> Actually, that comma is fine. Its absence would be fine, too.

It is slightly better not to have to prevent (theoretical) rebase or
other similar issues when a new item can go behind the terminator. In
such a case compiler can easily tell you if something is wrong.

> > > > +};

...

> > > > +static const struct of_device_id __maybe_unused mt6360_led_of_id[] = {
> > > > + { .compatible = "mediatek,mt6360-led", },
> > >
> > > > + {},
> > >
> > > No need comma.
> >
> > ACK
>
> It is also no hurting comma.

Same explanation. It doesn't hurt per se, but its absence might serve a purpose.

--
With Best Regards,
Andy Shevchenko

\
 
 \ /
  Last update: 2020-09-10 13:52    [W:0.047 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site