From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753657AbcFOMx7 (ORCPT ); Wed, 15 Jun 2016 08:53:59 -0400 Received: from mail-wm0-f44.google.com ([74.125.82.44]:38272 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752789AbcFOMx6 (ORCPT ); Wed, 15 Jun 2016 08:53:58 -0400 Date: Wed, 15 Jun 2016 13:54:38 +0100 From: Lee Jones To: John Stultz Cc: lkml , Dmitry Torokhov , Rob Herring , Jorge Ramirez-Ortiz , Feng Chen , Wei Xu , Guodong Xu Subject: Re: [PATCH 3/4] mfd: hi655x-pmic: Rename some interrupt macro names Message-ID: <20160615125438.GH4948@dell> References: <1465944212-17079-1-git-send-email-john.stultz@linaro.org> <1465944212-17079-4-git-send-email-john.stultz@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1465944212-17079-4-git-send-email-john.stultz@linaro.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 14 Jun 2016, John Stultz wrote: > Currently the hi655x-pmic driver has names for interrupt mask > values, but not for the interrupt numbers themselves. > > So to allow for interrupt numbers to have sane names, rename > the mask values with the _MASK postfix and use the existing > names as the interrupt name > > Cc: Dmitry Torokhov > Cc: Rob Herring > Cc: Lee Jones > Cc: Jorge Ramirez-Ortiz > Cc: Feng Chen > Cc: Wei Xu > Cc: Guodong Xu > Signed-off-by: John Stultz > --- > drivers/mfd/hi655x-pmic.c | 16 ++++++++-------- > include/linux/mfd/hi655x-pmic.h | 25 +++++++++++++++++-------- > 2 files changed, 25 insertions(+), 16 deletions(-) Applied, thanks. > diff --git a/drivers/mfd/hi655x-pmic.c b/drivers/mfd/hi655x-pmic.c > index 68ab370..072e6fe 100644 > --- a/drivers/mfd/hi655x-pmic.c > +++ b/drivers/mfd/hi655x-pmic.c > @@ -29,14 +29,14 @@ static const struct mfd_cell hi655x_pmic_devs[] = { > }; > > static const struct regmap_irq hi655x_irqs[] = { > - { .reg_offset = 0, .mask = OTMP_D1R_INT }, > - { .reg_offset = 0, .mask = VSYS_2P5_R_INT }, > - { .reg_offset = 0, .mask = VSYS_UV_D3R_INT }, > - { .reg_offset = 0, .mask = VSYS_6P0_D200UR_INT }, > - { .reg_offset = 0, .mask = PWRON_D4SR_INT }, > - { .reg_offset = 0, .mask = PWRON_D20F_INT }, > - { .reg_offset = 0, .mask = PWRON_D20R_INT }, > - { .reg_offset = 0, .mask = RESERVE_INT }, > + { .reg_offset = 0, .mask = OTMP_D1R_INT_MASK }, > + { .reg_offset = 0, .mask = VSYS_2P5_R_INT_MASK }, > + { .reg_offset = 0, .mask = VSYS_UV_D3R_INT_MASK }, > + { .reg_offset = 0, .mask = VSYS_6P0_D200UR_INT_MASK }, > + { .reg_offset = 0, .mask = PWRON_D4SR_INT_MASK }, > + { .reg_offset = 0, .mask = PWRON_D20F_INT_MASK }, > + { .reg_offset = 0, .mask = PWRON_D20R_INT_MASK }, > + { .reg_offset = 0, .mask = RESERVE_INT_MASK }, > }; > > static const struct regmap_irq_chip hi655x_irq_chip = { > diff --git a/include/linux/mfd/hi655x-pmic.h b/include/linux/mfd/hi655x-pmic.h > index dbbe9a6..62f03c2 100644 > --- a/include/linux/mfd/hi655x-pmic.h > +++ b/include/linux/mfd/hi655x-pmic.h > @@ -34,14 +34,23 @@ > #define PMU_VER_START 0x10 > #define PMU_VER_END 0x38 > > -#define RESERVE_INT BIT(7) > -#define PWRON_D20R_INT BIT(6) > -#define PWRON_D20F_INT BIT(5) > -#define PWRON_D4SR_INT BIT(4) > -#define VSYS_6P0_D200UR_INT BIT(3) > -#define VSYS_UV_D3R_INT BIT(2) > -#define VSYS_2P5_R_INT BIT(1) > -#define OTMP_D1R_INT BIT(0) > +#define RESERVE_INT 7 > +#define PWRON_D20R_INT 6 > +#define PWRON_D20F_INT 5 > +#define PWRON_D4SR_INT 4 > +#define VSYS_6P0_D200UR_INT 3 > +#define VSYS_UV_D3R_INT 2 > +#define VSYS_2P5_R_INT 1 > +#define OTMP_D1R_INT 0 > + > +#define RESERVE_INT_MASK BIT(RESERVE_INT) > +#define PWRON_D20R_INT_MASK BIT(PWRON_D20R_INT) > +#define PWRON_D20F_INT_MASK BIT(PWRON_D20F_INT) > +#define PWRON_D4SR_INT_MASK BIT(PWRON_D4SR_INT) > +#define VSYS_6P0_D200UR_INT_MASK BIT(VSYS_6P0_D200UR_INT) > +#define VSYS_UV_D3R_INT_MASK BIT(VSYS_UV_D3R_INT) > +#define VSYS_2P5_R_INT_MASK BIT(VSYS_2P5_R_INT) > +#define OTMP_D1R_INT_MASK BIT(OTMP_D1R_INT) > > struct hi655x_pmic { > struct resource *res; -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog