From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754711AbdCTM6k (ORCPT ); Mon, 20 Mar 2017 08:58:40 -0400 Received: from mga05.intel.com ([192.55.52.43]:53566 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753079AbdCTM6A (ORCPT ); Mon, 20 Mar 2017 08:58:00 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,194,1486454400"; d="scan'208";a="62641592" Message-ID: <1490014505.19767.103.camel@linux.intel.com> Subject: Re: [PATCH 01/15] mfd: Add Cherry Trail Whiskey Cove PMIC driver From: Andy Shevchenko To: Lee Jones Cc: Hans de Goede , "Rafael J . Wysocki" , Len Brown , Wolfram Sang , Sebastian Reichel , MyungJoo Ham , Chanwoo Choi , linux-acpi@vger.kernel.org, Takashi Iwai , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Bin Gao , Felipe Balbi Date: Mon, 20 Mar 2017 14:55:05 +0200 In-Reply-To: <20170320104152.lba24r2qilpjr2kk@dell> References: <20170317095527.10487-1-hdegoede@redhat.com> <20170317095527.10487-2-hdegoede@redhat.com> <1489770046.19767.66.camel@linux.intel.com> <20170320104152.lba24r2qilpjr2kk@dell> Organization: Intel Finland Oy Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.5-1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Intel Finland Oy