lkml.org 
[lkml]   [2017]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 01/15] mfd: Add Cherry Trail Whiskey Cove PMIC driver
From
Date
On Mon, 2017-03-20 at 10:41 +0000, Lee Jones wrote:
> On Fri, 17 Mar 2017, Andy Shevchenko wrote:
> > On Fri, 2017-03-17 at 10:55 +0100, Hans de Goede wrote:

> > > +enum {
> > > + CHT_WC_PWRSRC_IRQ = 0,
> > > + CHT_WC_THRM_IRQ,
> > > + CHT_WC_BCU_IRQ,
> > > + CHT_WC_ADC_IRQ,
> > > + CHT_WC_EXT_CHGR_IRQ,
> > > + CHT_WC_GPIO_IRQ,
> > > + /* There is no irq 6 */
> > > + CHT_WC_CRIT_IRQ = 7,
> >
> > I would prefer explicit over implicit (adding = N to each line), but
> > this is minor.
>
> No need.  The C standard is clear on what is expected of enums.

I understand that, though I don't like gaps in enums. That's why I
prefer in such cases pure #define over enum (yes, I understand that enum
in many cases is better).

But this all matter of taste. So, I will not insist if it would be left
as it is now.

--
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy

\
 
 \ /
  Last update: 2017-03-20 13:59    [W:0.072 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site