Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp612584imm; Tue, 5 Jun 2018 01:18:50 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKHTgy/l/Om1hKoBPm1W1U0cazOwMT2DFZoh8nXfAw/v6EVobAoUHjpkKx0FK1xwHmLB0P5 X-Received: by 2002:a17:902:26a:: with SMTP id 97-v6mr25701706plc.367.1528186730802; Tue, 05 Jun 2018 01:18:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528186730; cv=none; d=google.com; s=arc-20160816; b=QueGaCx7Cev84EsN9eLvJOk+DRgcT8lDAhznG34y2skR46gFFHFhFQT/i17aTINJrI g/fhFnLcbzRYCsuPa4fiIw8NXY6nDJfXGR2Wz3emN+fiJ7//DtDsCijFkrvLLpuuH1+1 uuBgGPXaJr7dYmP8EAyhZzrdmdkWkmUlbhRx6ui7ZxCoVW3E1K3zNxfSG0Nj6By0RRJr YtcMj5Y9/3iNJJnNgMHpYMlZ+I7eLW8lkfm7/0cqk4BAqODen7USfaF7+zK+5+lsIuhw Zv+QfSVEsjWNJHXDewbKAnsnwqX8eCSeQ7joTidjh894fUv3+2g6C6g0SFoCjTaBEuHp GnqQ== 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=tqQXhhLCiEvWo8cz/WdldnM5vgTGZj2/FuJ+PPl/bOA=; b=P+4K8fkIIl1mKtMb0j7xYcUX8hDqDz13xIvYPwmTnfnc2HwWMYjoVLaDHW6kNeX/5g UAaIRuPlMb8StQKzB6bI8dxD+f+LNOU3O14SvvsBPrh0QNAqwrb/mPftaQPw7golWKWn npeoC9GgUTG0HmzyTP3UFZhwj3S+RWBIo4WzOkJgNwrcFcDpex0U964zGjELoiQYa5WJ s2kphx2wPNFxlVr+SVgQP7xz/n6Y5yIawDhZHGG+r/9maFgnf7s2gMcDrCvP/KDCry5O 6Uag1psMik7DMKBWcA9cXEjowRLRtCRUFsMez8VxLI46tpaoPw1VMNzzDvnbhXOenFxN PTig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZhXDZvQK; 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 x6-v6si17514007pgo.448.2018.06.05.01.18.36; Tue, 05 Jun 2018 01:18:50 -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=ZhXDZvQK; 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 S1751896AbeFEIQp (ORCPT + 99 others); Tue, 5 Jun 2018 04:16:45 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:54079 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751865AbeFEIQm (ORCPT ); Tue, 5 Jun 2018 04:16:42 -0400 Received: by mail-wm0-f67.google.com with SMTP id x6-v6so3091317wmc.3 for ; Tue, 05 Jun 2018 01:16:41 -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=tqQXhhLCiEvWo8cz/WdldnM5vgTGZj2/FuJ+PPl/bOA=; b=ZhXDZvQKun77zAP+Smpc3luD6wy5w1zX3V7vrZgEqaveKF1oOksCjOMK6IhZj2ZrK2 tTgJW3UZi2W0itZR1OgvcuTph+aJjeT36+YFTRgi7wCMXsebr8OyCFypeGIdBPp9eXzh 3W9Bx206hJoW1c+xRFprzNu77+7gqCvTmoUWI= 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=tqQXhhLCiEvWo8cz/WdldnM5vgTGZj2/FuJ+PPl/bOA=; b=a0YovdW5JE+ujfp0lNXkYb8n4ZljdrYV0ypndR1teucBQUy7OeEDoY8JNixA5UYrJr bdeeOp0sqjmanh2XLSxmQWIEP56NgJSbzF7BbJPoBU9T+uwh2OiEWz37/8VRSOcIoRcM eYsU2tXVQ79cvPYtaJprULTIOl5nrn3HSTYx/6+u6lfJACJYoLkZpahaq91ZooPW9TB6 NmRJAuggoMNPqaNHjfN5fEiqhDPrfFOCWAurN4AYuxJw0ZWaXf6rnoHPrh1I6nUZ0eUI prJbfddqiQWh8coDJYnseKI1cK2uluMVcXieUs4ERAwBUmn4Vpu6Yk0lmX/IDQUDbBaj CtXg== X-Gm-Message-State: APt69E0OOJEpmRQnHO5WzgupEYcSRKqH+zJ+Dcr95iKQ5ccSQM6Es0PV myerg2rG//Asvs5b10cua7M2VA== X-Received: by 2002:a1c:355:: with SMTP id 82-v6mr10267337wmd.96.1528186600967; Tue, 05 Jun 2018 01:16:40 -0700 (PDT) Received: from dell ([2.31.167.232]) by smtp.gmail.com with ESMTPSA id o2-v6sm1004813wmo.24.2018.06.05.01.16.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Jun 2018 01:16:39 -0700 (PDT) Date: Tue, 5 Jun 2018 09:16:38 +0100 From: Lee Jones To: Geert Uytterhoeven Cc: Marek Vasut , Linux Kernel Mailing List , Marek Vasut , Geert Uytterhoeven , Mark Brown , Steve Twiss , Wolfram Sang , Linux-Renesas Subject: Re: [PATCH v3 02/10] mfd: da9063: Use REGMAP_IRQ_REG Message-ID: <20180605080115.GN21163@dell> References: <20180602101155.26375-1-marek.vasut+renesas@gmail.com> <20180602101155.26375-2-marek.vasut+renesas@gmail.com> <20180604122624.GB21163@dell> <20180605070913.GH21163@dell> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 Tue, 05 Jun 2018, Geert Uytterhoeven wrote: > Hi Lee, > > On Tue, Jun 5, 2018 at 9:09 AM, Lee Jones wrote: > > On Mon, 04 Jun 2018, Marek Vasut wrote: > >> On 06/04/2018 02:26 PM, Lee Jones wrote: > >> > 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. > >> > >> Doesn't really help the readability, but done. > > > > I don't make the rules. :) > > Documentation/process/coding-style.rst: > > "Statements longer than 80 columns will be broken into sensible chunks, unless > exceeding 80 columns significantly increases readability and does not hide > information." Operative word here is "significantly". > > Personally /me is hoping that the 80 char limit is lifted to ~120 soon. > > Please no ;-) Maybe 120 is pushing it a little, but 80 is so 19xx? ... well, 80! -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog