Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3541690imm; Mon, 4 Jun 2018 05:27:39 -0700 (PDT) X-Google-Smtp-Source: ADUXVKINxW5Z50YWwjbeHjEsc+a6aLifhNhs4KloniB1f35mFyoGLZWlAnHidVS+hhj8LrSaKOQ9 X-Received: by 2002:a17:902:2f43:: with SMTP id s61-v6mr21679597plb.274.1528115259174; Mon, 04 Jun 2018 05:27:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528115259; cv=none; d=google.com; s=arc-20160816; b=jJgBvMXLDeWIQIFceG/1FzGuprltcDoumlJNL3kRAe/L/WAX0QXdWG8NohecKeJJe3 5SqGcg+H4aDjmq3HNytMEDexiVJRO5fTtrWGH6njToE9flmS6RmbUb72bKfCgzIOJus4 icqyngw91Jau+gkWLbeeQX73nJkQs/7dCztnHJM094fYrvlNEuvRWIX31B9jMZm0zPbD wNay6tB+ge+d5RiDpKTfgu/zhz7cR7aRrlviiPtAaqPFd7LslqfEnan86/Y3ttBLYZq9 gpqj1dBZFm8xhMUMBvGWi1jBaJhZXoCjCQsaYGzBuZq9GYtF4Kd0Xtp2Sn0d9D3v92mL Gb2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=xdWYhcC9aAEuH7ihL9s3QjvRqDaorCayFSFQfVD/lM0=; b=NXrRMrNC/i4XlAUbH5fQ3xjJg/hTs9fIMqlHrC/uuYrpdkxhGu5VQLMXcLyr8XB1vz HTws613Q5goWrRxS2PviyqyIJ5qS47kK0p9CnLUJpduWLQvdR5UjGUgfS78IPII1/Q6x WUdS2JvzGedJ2Yi/nqO0pm8IpOQLwFI8CGWorOV56sduhrL5nubVtj0/qxweUXxvvyZA eUDoFwI+JoudwVwF6bfIWUgoht94pAOj4Wi0OA43b0OzmQ7VpV4eFV0Mf8Pig2RQkckL uKn9FqpzaZk5vPVZK9uslzY+OPFpFTBxQwpDF5HURuyt2vLQeQijKsTZhUxkYxjYQ+Hk t58g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RLjDheW6; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l2-v6si36451856pgc.438.2018.06.04.05.27.24; Mon, 04 Jun 2018 05:27:39 -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; dkim=pass header.i=@linaro.org header.s=google header.b=RLjDheW6; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752733AbeFDM0c (ORCPT + 99 others); Mon, 4 Jun 2018 08:26:32 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:38815 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753036AbeFDM02 (ORCPT ); Mon, 4 Jun 2018 08:26:28 -0400 Received: by mail-wm0-f67.google.com with SMTP id m129-v6so14469039wmb.3 for ; Mon, 04 Jun 2018 05:26:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=xdWYhcC9aAEuH7ihL9s3QjvRqDaorCayFSFQfVD/lM0=; b=RLjDheW6hfaxKrNOGD+W+2r3Th+KMTA1AL30q9S2DsH22y5zJ24gAOBLtqp6LeG1Oy UHwMLIK0XGtoS3KgaO22PgGAhdRZkWT+Xm/b2GcfbgrDYrLlZeJTbwtYBREvqRqWyOOR 8aj0o8uMzvk52NqNtzFdihf5WVdNTNth0XuuA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=xdWYhcC9aAEuH7ihL9s3QjvRqDaorCayFSFQfVD/lM0=; b=qJ5yf2XTdSbMYCyrKm2KwK1KXL7YUd5b8A8U/t/BKQwv+5n4+AV1U/xoTzsyDfw6WJ PTx+WwnpbrYdIQkxWjNVEEeBwRowjqQP5fkBEilG1Lh2fNLFd5C3XFEAc+XV14KEio0y xvdpO3iMGZfRwhuelWdqRZ9iE5ApVNdSBB2+WCKyutrWQarVsLzU3YpzQTVXlAT0foT1 k2RY+gBMF8se3iQHS1o4qouVoghdIom6rUgS5ESD2QyzQqUQtVtx3pGSF+1vOr1KVbPg SGQCcWscej43iGdCH56kwtX0chPV0YACEYfxXTaXgNjTRyuUYDeG7S7kl4ij2XaFhaGl xk7g== X-Gm-Message-State: APt69E0c0tdEzgjolQNKJkBvTIBwbT/gmTUaIk1dPXvZ9LlTwAaiDH7i nTEp4jAHCbV0T7+SqcSE+sIAVg== X-Received: by 2002:a1c:88c9:: with SMTP id k192-v6mr6088832wmd.125.1528115187077; Mon, 04 Jun 2018 05:26:27 -0700 (PDT) Received: from dell ([2.31.167.234]) by smtp.gmail.com with ESMTPSA id e80-v6sm135501wmd.1.2018.06.04.05.26.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Jun 2018 05:26:26 -0700 (PDT) Date: Mon, 4 Jun 2018 13:26:24 +0100 From: Lee Jones To: Marek Vasut Cc: linux-kernel@vger.kernel.org, Marek Vasut , Geert Uytterhoeven , Mark Brown , Steve Twiss , Wolfram Sang , linux-renesas-soc@vger.kernel.org Subject: Re: [PATCH v3 02/10] mfd: da9063: Use REGMAP_IRQ_REG Message-ID: <20180604122624.GB21163@dell> References: <20180602101155.26375-1-marek.vasut+renesas@gmail.com> <20180602101155.26375-2-marek.vasut+renesas@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180602101155.26375-2-marek.vasut+renesas@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 02 Jun 2018, Marek Vasut wrote: > 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), Nice, but I think checkpatch.pl would complain. Better to break after the first argument I think. -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog