From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f196.google.com ([209.85.128.196]:42261 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755173AbeE2HrC (ORCPT ); Tue, 29 May 2018 03:47:02 -0400 Received: by mail-wr0-f196.google.com with SMTP id w10-v6so23759899wrk.9 for ; Tue, 29 May 2018 00:47:02 -0700 (PDT) Date: Tue, 29 May 2018 08:46:59 +0100 From: Lee Jones To: Marek Vasut Cc: Steve Twiss , "linux-kernel@vger.kernel.org" , Marek Vasut , Geert Uytterhoeven , Mark Brown , Wolfram Sang , "linux-renesas-soc@vger.kernel.org" Subject: Re: [PATCH 6/6] mfd: da9063: Add DA9063L support Message-ID: <20180529074659.GC4790@dell> References: <20180523114230.10109-1-marek.vasut+renesas@gmail.com> <20180523114230.10109-6-marek.vasut+renesas@gmail.com> <6ED8E3B22081A4459DAC7699F3695FB701941A47F0@SW-EX-MBX02.diasemi.com> <6ED8E3B22081A4459DAC7699F3695FB701941A4866@SW-EX-MBX02.diasemi.com> <3d81a469-e54f-953d-7600-7ddf3d026ca1@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3d81a469-e54f-953d-7600-7ddf3d026ca1@gmail.com> Sender: linux-renesas-soc-owner@vger.kernel.org List-ID: On Thu, 24 May 2018, Marek Vasut wrote: > On 05/24/2018 02:32 PM, Steve Twiss wrote: > > On 24 May 2018 @ 12:49 Steve Twiss wrote: [...] > > static const struct regmap_irq da9063l_irqs[] = { > > /* DA9063 event A register */ > > [DA9063L_IRQ_ONKEY] = { > > .reg_offset = DA9063_REG_EVENT_A_OFFSET, > > .mask = DA9063_M_ONKEY, > > }, [...] > > [DA9063L_IRQ_GPI15] = { > > .reg_offset = DA9063_REG_EVENT_D_OFFSET, > > .mask = DA9063_M_GPI15, > > }, > > }; > > We can probably do the same trick with the regmaps and irqmaps as with > the rest, that is, reorder them and register only a smaller portion ? Please also consider using REGMAP_IRQ_REG(). -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog