Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1332475imm; Tue, 5 Jun 2018 12:49:43 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKp5O/YXm7SIdKjxi2vq6wrDzec0bSKsytHcTbp/e6IlVi6OHBxSfqnm7ZLBh4y3IbTmSXK X-Received: by 2002:a62:6e01:: with SMTP id j1-v6mr9492pfc.93.1528228183833; Tue, 05 Jun 2018 12:49:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528228183; cv=none; d=google.com; s=arc-20160816; b=lzzEBQv0JMaec6VnvvlX85muiSYnbCpxJrQgvMwD73RDKcOJAr0P+iWHE1jLlkgKqC KT5c8fO8HPKJjtw4+X9MOIIZOBOC3L6x3bUo8Sp8Ql1fBGa0eGswwk+mnR3JheMgQzsx okPhhw62ZoeoKaFtWdY8lB8j1x5WGfreN5APUXrlKXM0FtNa/dME4A++wufQXjxVrmpm 7WrDU+Rxqt0Co43gQoING+10igOlzRy/mBQEdPP4Lu+/uoSD9Nt6OVZggNPq1vU3Bgr0 i1to6m37FMSTS5jVnI1hGXYFvCdref0slRgwW+7XBKslm92MuCZAOvsOkJ5o8o06uJMe sB3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from :arc-authentication-results; bh=7K3QTVEfzQJOUkxRs4M3lqffGv9+iS5ozVfDIcRt7ck=; b=GTGnf3q9tzGG/McjDD/3yjeVpqV352/mnW5Y7yuCZCdfP5O5PFOl5ugFpXpN24qkGL TA2xPgPXlfBCmqqXWf9ZFX+5KNXRLZtofCjIds9Epu8apRZkRfpfclXCoqRw4u0BhFjl vHTXjyRxtpOriBR7qsWm+PX8Jc8A2Z/EN+V6WUbwDQl9wSGHVDME6RGpXnP6P8rlH/xg cSOWRWlXdA/+Dlq/Ri9eZeIejUFO+twUTRPk9viQrHuOJt8M+VWojdkDAG50bt9BS1H6 Cs/pejgE9/13TTY/iD3sXFtjnGsXaJ3LAAOxwVodoxpoQkREi/AphQEYjtU59w+Vq8ea KrJw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=diasemi.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 32-v6si26200145ple.447.2018.06.05.12.49.29; Tue, 05 Jun 2018 12:49:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=diasemi.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752044AbeFETsw convert rfc822-to-8bit (ORCPT + 99 others); Tue, 5 Jun 2018 15:48:52 -0400 Received: from mail1.bemta25.messagelabs.com ([195.245.230.3]:12125 "EHLO mail1.bemta25.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751895AbeFETsu (ORCPT ); Tue, 5 Jun 2018 15:48:50 -0400 Received: from [46.226.52.104] (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits)) by server-3.bemta.az-a.eu-west-1.aws.symcld.net id 89/DD-12616-029E61B5; Tue, 05 Jun 2018 19:48:48 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrHKsWRWlGSWpSXmKPExsUSt3Opsa7CS7F og8mzVCymPnzCZjF39iRGi/tfjzJaXN41h81i68t3TBYPV85hsTi65x6zRd85dwcOj4lndT12 zrrL7rFpVSebx51re9g8ni1cz+LxeZNcAFsUa2ZeUn5FAmtGY9875oKlFhWX+n+yNjA+Nuhi5 OIQEljKKLH90UvGLkZODjYBQ4l5b96D2SIC6RLvLixgBCliFrjMJLFtcycrSEJYwFZi0eL5zB BFdhIPWv6xQdhGEv8+HWUCsVkEVCTeHXwCFucVCJBYf2wOUC8H0LYqic/fDUHCnALOEl9fbgf bxSggK/GlcTXYSGYBcYlbT+aDjZEQEJBYsuc8M4QtKvHy8T9WCFtBYt+vlWwQtr3E63vvWCBs fYlHjx8xQtiGEqumHYCKm0tM7XnICDFfR2LB7k9sELa2xLKFr5khzhSUODnzCcsERvFZSM6Yh aRlFpKWWUhaFjCyrGI0TyrKTM8oyU3MzNE1NDDQNTQ00jW0NNE1M9dLrNJN1Est1S1PLS7RNd RLLC/WK67MTc5J0ctLLdnECIx3BiDYwXjsW/IhRkkOJiVRXp1FYtFCfEn5KZUZicUZ8UWlOan FhxhlODiUJHg5XwDlBItS01Mr0jJzgIkHJi3BwaMkwnv+OVCat7ggMbc4Mx0idYpRUUqcNxSk TwAkkVGaB9cGS3aXGGWlhHkZgQ4R4ilILcrNLEGVf8UozsGoJMybBTKeJzOvBG76K6DFTECLn 1UIgywuSURISTUwGtpvT/v36s7FlJ9Ot3/xFHw7YbVE9niyXpf/oTXZRnIBzfM/3Oh28+stq2 HbmH+3ImjZzdUv/7/1XtU499LXld3PH7jfT7GpmnqI+b1BBQuDc839n0pnfDeYJ+gEp211M1v s9CnsR7/fRXZthZUdnnUferY4xxW052gprwpu/Fw4RXhy/DoHJZbijERDLeai4kQAqDbCzXED AAA= X-Env-Sender: stwiss.opensource@diasemi.com X-Msg-Ref: server-5.tower-268.messagelabs.com!1528228128!1244339!1 X-Originating-IP: [94.185.165.51] X-SYMC-ESS-Client-Auth: outbound-route-from=pass X-StarScan-Received: X-StarScan-Version: 9.9.15; banners=-,-,- X-VirusChecked: Checked Received: (qmail 10917 invoked from network); 5 Jun 2018 19:48:48 -0000 Received: from mailrelay2.diasemi.com (HELO sw-ex-cashub02.diasemi.com) (94.185.165.51) by server-5.tower-268.messagelabs.com with AES128-SHA encrypted SMTP; 5 Jun 2018 19:48:48 -0000 Received: from SW-EX-MBX02.diasemi.com ([169.254.4.155]) by sw-ex-cashub02.diasemi.com ([10.20.16.142]) with mapi id 14.03.0382.000; Tue, 5 Jun 2018 20:48:48 +0100 From: Steve Twiss To: Marek Vasut , "linux-kernel@vger.kernel.org" CC: Marek Vasut , Geert Uytterhoeven , Lee Jones , Mark Brown , Wolfram Sang , "linux-renesas-soc@vger.kernel.org" , Support Opensource Subject: RE: [PATCH v3 02/10] mfd: da9063: Use REGMAP_IRQ_REG Thread-Topic: [PATCH v3 02/10] mfd: da9063: Use REGMAP_IRQ_REG Thread-Index: AQHT+lov59vIktDgN0a/0w/aY7SLqaRR6nJw Date: Tue, 5 Jun 2018 19:48:47 +0000 Message-ID: <6ED8E3B22081A4459DAC7699F3695FB701941AD6BF@SW-EX-MBX02.diasemi.com> References: <20180602101155.26375-1-marek.vasut+renesas@gmail.com> <20180602101155.26375-2-marek.vasut+renesas@gmail.com> In-Reply-To: <20180602101155.26375-2-marek.vasut+renesas@gmail.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.20.27.121] x-kse-attachmentfiltering-interceptor-info: protection disabled x-kse-serverinfo: sw-ex-cashub02.diasemi.com, 9 x-kse-antivirus-interceptor-info: scan successful x-kse-antivirus-info: Clean, bases: 05/06/2018 15:14:00 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02 June 2018 11:12, Marek Vasut wrote, > Subject: [PATCH v3 02/10] mfd: da9063: Use REGMAP_IRQ_REG > > Convert the regmap_irq table to use REGMAP_IRQ_REG(). > > Signed-off-by: Marek Vasut > Cc: Geert Uytterhoeven > Cc: Lee Jones > Cc: Mark Brown > Cc: Steve Twiss > Cc: Wolfram Sang > Cc: linux-renesas-soc@vger.kernel.org > --- > V3: New patch > Note: A sed oneliner was used: > sed -i "/\[DA9063_IRQ_/ > {N;N;N;s/\n//g;s/.*\[\(DA9063_IRQ_[^]]\+\)].*reg_offset = \([^,]\+\),.* = > \([^,]\+\),.*/\tREGMAP_IRQ_REG(\1, \2, \3),/}" drivers/mfd/da9063-irq.c > --- > drivers/mfd/da9063-irq.c | 145 ++++++++++------------------------------------- > 1 file changed, 29 insertions(+), 116 deletions(-) > > diff --git a/drivers/mfd/da9063-irq.c b/drivers/mfd/da9063-irq.c > index 207bbfe55449..5b406ecfc14a 100644 > --- a/drivers/mfd/da9063-irq.c > +++ b/drivers/mfd/da9063-irq.c > @@ -28,125 +28,38 @@ > > static const struct regmap_irq da9063_irqs[] = { > /* DA9063 event A register */ > - [DA9063_IRQ_ONKEY] = { > - .reg_offset = DA9063_REG_EVENT_A_OFFSET, > - .mask = DA9063_M_ONKEY, > - }, > - [DA9063_IRQ_ALARM] = { > - .reg_offset = DA9063_REG_EVENT_A_OFFSET, > - .mask = DA9063_M_ALARM, > - }, > - [DA9063_IRQ_TICK] = { > - .reg_offset = DA9063_REG_EVENT_A_OFFSET, > - .mask = DA9063_M_TICK, > - }, > - [DA9063_IRQ_ADC_RDY] = { > - .reg_offset = DA9063_REG_EVENT_A_OFFSET, > - .mask = DA9063_M_ADC_RDY, > - }, > - [DA9063_IRQ_SEQ_RDY] = { > - .reg_offset = DA9063_REG_EVENT_A_OFFSET, > - .mask = DA9063_M_SEQ_RDY, > - }, > + REGMAP_IRQ_REG(DA9063_IRQ_ONKEY, > DA9063_REG_EVENT_A_OFFSET, DA9063_M_ONKEY), > + REGMAP_IRQ_REG(DA9063_IRQ_ALARM, > DA9063_REG_EVENT_A_OFFSET, DA9063_M_ALARM), > + REGMAP_IRQ_REG(DA9063_IRQ_TICK, DA9063_REG_EVENT_A_OFFSET, > DA9063_M_TICK), > + REGMAP_IRQ_REG(DA9063_IRQ_ADC_RDY, > DA9063_REG_EVENT_A_OFFSET, DA9063_M_ADC_RDY), > + REGMAP_IRQ_REG(DA9063_IRQ_SEQ_RDY, > DA9063_REG_EVENT_A_OFFSET, DA9063_M_SEQ_RDY), > /* DA9063 event B register */ > - [DA9063_IRQ_WAKE] = { > - .reg_offset = DA9063_REG_EVENT_B_OFFSET, > - .mask = DA9063_M_WAKE, > - }, > - [DA9063_IRQ_TEMP] = { > - .reg_offset = DA9063_REG_EVENT_B_OFFSET, > - .mask = DA9063_M_TEMP, > - }, > - [DA9063_IRQ_COMP_1V2] = { > - .reg_offset = DA9063_REG_EVENT_B_OFFSET, > - .mask = DA9063_M_COMP_1V2, > - }, > - [DA9063_IRQ_LDO_LIM] = { > - .reg_offset = DA9063_REG_EVENT_B_OFFSET, > - .mask = DA9063_M_LDO_LIM, > - }, > - [DA9063_IRQ_REG_UVOV] = { > - .reg_offset = DA9063_REG_EVENT_B_OFFSET, > - .mask = DA9063_M_UVOV, > - }, > - [DA9063_IRQ_DVC_RDY] = { > - .reg_offset = DA9063_REG_EVENT_B_OFFSET, > - .mask = DA9063_M_DVC_RDY, > - }, > - [DA9063_IRQ_VDD_MON] = { > - .reg_offset = DA9063_REG_EVENT_B_OFFSET, > - .mask = DA9063_M_VDD_MON, > - }, > - [DA9063_IRQ_WARN] = { > - .reg_offset = DA9063_REG_EVENT_B_OFFSET, > - .mask = DA9063_M_VDD_WARN, > - }, > + REGMAP_IRQ_REG(DA9063_IRQ_WAKE, > DA9063_REG_EVENT_B_OFFSET, DA9063_M_WAKE), > + REGMAP_IRQ_REG(DA9063_IRQ_TEMP, > DA9063_REG_EVENT_B_OFFSET, DA9063_M_TEMP), > + REGMAP_IRQ_REG(DA9063_IRQ_COMP_1V2, > DA9063_REG_EVENT_B_OFFSET, DA9063_M_COMP_1V2), > + REGMAP_IRQ_REG(DA9063_IRQ_LDO_LIM, > DA9063_REG_EVENT_B_OFFSET, DA9063_M_LDO_LIM), > + REGMAP_IRQ_REG(DA9063_IRQ_REG_UVOV, > DA9063_REG_EVENT_B_OFFSET, DA9063_M_UVOV), > + REGMAP_IRQ_REG(DA9063_IRQ_DVC_RDY, > DA9063_REG_EVENT_B_OFFSET, DA9063_M_DVC_RDY), > + REGMAP_IRQ_REG(DA9063_IRQ_VDD_MON, > DA9063_REG_EVENT_B_OFFSET, DA9063_M_VDD_MON), > + REGMAP_IRQ_REG(DA9063_IRQ_WARN, > DA9063_REG_EVENT_B_OFFSET, DA9063_M_VDD_WARN), > /* DA9063 event C register */ > - [DA9063_IRQ_GPI0] = { > - .reg_offset = DA9063_REG_EVENT_C_OFFSET, > - .mask = DA9063_M_GPI0, > - }, > - [DA9063_IRQ_GPI1] = { > - .reg_offset = DA9063_REG_EVENT_C_OFFSET, > - .mask = DA9063_M_GPI1, > - }, > - [DA9063_IRQ_GPI2] = { > - .reg_offset = DA9063_REG_EVENT_C_OFFSET, > - .mask = DA9063_M_GPI2, > - }, > - [DA9063_IRQ_GPI3] = { > - .reg_offset = DA9063_REG_EVENT_C_OFFSET, > - .mask = DA9063_M_GPI3, > - }, > - [DA9063_IRQ_GPI4] = { > - .reg_offset = DA9063_REG_EVENT_C_OFFSET, > - .mask = DA9063_M_GPI4, > - }, > - [DA9063_IRQ_GPI5] = { > - .reg_offset = DA9063_REG_EVENT_C_OFFSET, > - .mask = DA9063_M_GPI5, > - }, > - [DA9063_IRQ_GPI6] = { > - .reg_offset = DA9063_REG_EVENT_C_OFFSET, > - .mask = DA9063_M_GPI6, > - }, > - [DA9063_IRQ_GPI7] = { > - .reg_offset = DA9063_REG_EVENT_C_OFFSET, > - .mask = DA9063_M_GPI7, > - }, > + REGMAP_IRQ_REG(DA9063_IRQ_GPI0, DA9063_REG_EVENT_C_OFFSET, > DA9063_M_GPI0), > + REGMAP_IRQ_REG(DA9063_IRQ_GPI1, DA9063_REG_EVENT_C_OFFSET, > DA9063_M_GPI1), > + REGMAP_IRQ_REG(DA9063_IRQ_GPI2, DA9063_REG_EVENT_C_OFFSET, > DA9063_M_GPI2), > + REGMAP_IRQ_REG(DA9063_IRQ_GPI3, DA9063_REG_EVENT_C_OFFSET, > DA9063_M_GPI3), > + REGMAP_IRQ_REG(DA9063_IRQ_GPI4, DA9063_REG_EVENT_C_OFFSET, > DA9063_M_GPI4), > + REGMAP_IRQ_REG(DA9063_IRQ_GPI5, DA9063_REG_EVENT_C_OFFSET, > DA9063_M_GPI5), > + REGMAP_IRQ_REG(DA9063_IRQ_GPI6, DA9063_REG_EVENT_C_OFFSET, > DA9063_M_GPI6), > + REGMAP_IRQ_REG(DA9063_IRQ_GPI7, DA9063_REG_EVENT_C_OFFSET, > DA9063_M_GPI7), > /* DA9063 event D register */ > - [DA9063_IRQ_GPI8] = { > - .reg_offset = DA9063_REG_EVENT_D_OFFSET, > - .mask = DA9063_M_GPI8, > - }, > - [DA9063_IRQ_GPI9] = { > - .reg_offset = DA9063_REG_EVENT_D_OFFSET, > - .mask = DA9063_M_GPI9, > - }, > - [DA9063_IRQ_GPI10] = { > - .reg_offset = DA9063_REG_EVENT_D_OFFSET, > - .mask = DA9063_M_GPI10, > - }, > - [DA9063_IRQ_GPI11] = { > - .reg_offset = DA9063_REG_EVENT_D_OFFSET, > - .mask = DA9063_M_GPI11, > - }, > - [DA9063_IRQ_GPI12] = { > - .reg_offset = DA9063_REG_EVENT_D_OFFSET, > - .mask = DA9063_M_GPI12, > - }, > - [DA9063_IRQ_GPI13] = { > - .reg_offset = DA9063_REG_EVENT_D_OFFSET, > - .mask = DA9063_M_GPI13, > - }, > - [DA9063_IRQ_GPI14] = { > - .reg_offset = DA9063_REG_EVENT_D_OFFSET, > - .mask = DA9063_M_GPI14, > - }, > - [DA9063_IRQ_GPI15] = { > - .reg_offset = DA9063_REG_EVENT_D_OFFSET, > - .mask = DA9063_M_GPI15, > - }, > + REGMAP_IRQ_REG(DA9063_IRQ_GPI8, DA9063_REG_EVENT_D_OFFSET, > DA9063_M_GPI8), > + REGMAP_IRQ_REG(DA9063_IRQ_GPI9, DA9063_REG_EVENT_D_OFFSET, > DA9063_M_GPI9), > + REGMAP_IRQ_REG(DA9063_IRQ_GPI10, > DA9063_REG_EVENT_D_OFFSET, DA9063_M_GPI10), > + REGMAP_IRQ_REG(DA9063_IRQ_GPI11, > DA9063_REG_EVENT_D_OFFSET, DA9063_M_GPI11), > + REGMAP_IRQ_REG(DA9063_IRQ_GPI12, > DA9063_REG_EVENT_D_OFFSET, DA9063_M_GPI12), > + REGMAP_IRQ_REG(DA9063_IRQ_GPI13, > DA9063_REG_EVENT_D_OFFSET, DA9063_M_GPI13), > + REGMAP_IRQ_REG(DA9063_IRQ_GPI14, > DA9063_REG_EVENT_D_OFFSET, DA9063_M_GPI14), > + REGMAP_IRQ_REG(DA9063_IRQ_GPI15, > DA9063_REG_EVENT_D_OFFSET, DA9063_M_GPI15), > }; > > static const struct regmap_irq_chip da9063_irq_chip = { > -- > 2.16.2 Hi Marek, Acked-by: Steve Twiss Regards, Steve