Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp575729imm; Tue, 5 Jun 2018 00:32:33 -0700 (PDT) X-Google-Smtp-Source: ADUXVKImVFQwYvDFIV/P7BV5JAHYUj+or5yn9FYwlKZKlMo+Mer0xWE+hv1r6zUD4/NzyK8QS0My X-Received: by 2002:a63:9402:: with SMTP id m2-v6mr19685795pge.8.1528183953237; Tue, 05 Jun 2018 00:32:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528183953; cv=none; d=google.com; s=arc-20160816; b=n9W4vJ6aim6DZ16zEK34uJNP5TBn/IzSVWdw/hUpCkYjaVKC19KEig4ixj8YTW6Uae je0z1qw8KMu1TgFKVeO6ww7I9yX6AyawrjVTMmDgZH1VepkzvWEPGXH/7eoA8+qsJwsl GsVal+btK3vpaaVMrP0KJ3sjV7tSgKKME8ZDJqz2tokMi6aGN/XYobTWFaxcz6lnAfAT SV2jd9c8P+osrAg8OrbxOnb1Hplw40qmtE7RJbnROOgKbFd0PJIk5N0lBbu/T/nR6sHo eC8Mc2PYZzdbD8cgLPlIgZYe6w9BEyRYWjLe71y31icuunnDrdha/pilGSi+zVYzAKj8 nZJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=pUi7R62yVrmsL12ySrxFf032pKX88yjuYytscOgoJG0=; b=s2O1kbijXsXERN0qxe4XeE3kSF+kOQrg9xxOc4gRjhh4xUWyDIawa056p63xv9CXHq ea8Nt38VbQR0CiXcS5XKYvAU6Nf9Cmw00vSjJdK41kkgMqMRSxnchyVVdhpWQD5srb8P isnKrXyICWWwOOZytAadQ63O+Dt9X8ZFdoCBBYqihQvs74vAlNz9Osfnh6FVljsGeIjl ti5zeKXKQF2O8M9CSQeQBH8pp+Ta9uGgA4PwitTM1V8fS0s6yYZEjvmqblOAZhBjcdQz 5bwhQrqLLt9WMWDJJXrQ6sf0S4hyksWMDsx8rd727Jr0FChESMdsvgDsQkJVha5cdY/+ 3dvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ml//3DhI; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l11-v6si30537425pgs.218.2018.06.05.00.32.18; Tue, 05 Jun 2018 00:32:33 -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=fail header.i=@gmail.com header.s=20161025 header.b=ml//3DhI; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751796AbeFEHbo (ORCPT + 99 others); Tue, 5 Jun 2018 03:31:44 -0400 Received: from mail-ua0-f193.google.com ([209.85.217.193]:37385 "EHLO mail-ua0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751525AbeFEHbn (ORCPT ); Tue, 5 Jun 2018 03:31:43 -0400 Received: by mail-ua0-f193.google.com with SMTP id i3-v6so891364uad.4; Tue, 05 Jun 2018 00:31:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=pUi7R62yVrmsL12ySrxFf032pKX88yjuYytscOgoJG0=; b=ml//3DhIn9W6FxoCP9cEZoNh6Emodr7LK4/D9nmM2sPw3msNCv4doujxYidZzXLe4i RM9M5JEzWHrCVF516W4HK0ZJCaBMwPuWsdwWtLBYDLj7gA383w2GHqv+dBtARj6E8inF Z0LOoBexpltaMxpjlk76fvsj5OHrKXGk5MCHNQDgHyhICfcoG288Pk2jhzyhq3p6z6e/ s8m1JOXYKtxS8Ru2aQrc4mqGH6T8nwFf7Af8Nx+bZnxMdESHHWQYOHaz1UQrbi7Odqo9 0n4ptuBlhk6os5HQi+p5IEN/i5zUQwwoQmOw/MVTgkx/uw6qwTX4GI3mr9rVrTaqW5dA 2FhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=pUi7R62yVrmsL12ySrxFf032pKX88yjuYytscOgoJG0=; b=Uzek3J5Y9+d4l5Mb0fZEb79n58f8muMIau2YBoh2/v9RmlkbKPvpczn7t2y1YwZkcR FeVFkRSSox2tViwypF557dzF1cPSQvo0ZtZ0CMThBqrLpg+rW7B87T+jeO+WzYVnvUV4 ArFJeAE+JRtlcYputeuEpTPO5hq8yBndihkVigL/4K0f6MbTLqmKB7GYOjNV5Z1XVckY QIcx/MH2S5SFBhr8p0uWwxdmhMAfarLXgYlQh0pM+ef9hgSgwoCzInjc0AJS8IvzA2dx PdUavEEDpdykGXMfvbDEXoMHm9FlOZk/blWs5L9IbpuTYqB33ROMk2CgiYVROb1VG66m H1oA== X-Gm-Message-State: ALKqPweC9AyQcWqZzf57JSSinYYpnt46cbtakyZLZCYlOnihOrkDybQW FY4b7Qh8/wSnWZVyboNYxyEynlNyUgzdIG3LERDVDJ2I X-Received: by 2002:ab0:48e1:: with SMTP id y30-v6mr13014517uac.180.1528183902220; Tue, 05 Jun 2018 00:31:42 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a67:8596:0:0:0:0:0 with HTTP; Tue, 5 Jun 2018 00:31:40 -0700 (PDT) In-Reply-To: <20180605070913.GH21163@dell> References: <20180602101155.26375-1-marek.vasut+renesas@gmail.com> <20180602101155.26375-2-marek.vasut+renesas@gmail.com> <20180604122624.GB21163@dell> <20180605070913.GH21163@dell> From: Geert Uytterhoeven Date: Tue, 5 Jun 2018 09:31:40 +0200 X-Google-Sender-Auth: 1_epo8h8--2HAEI1y8FixtRvUSg Message-ID: Subject: Re: [PATCH v3 02/10] mfd: da9063: Use REGMAP_IRQ_REG To: Lee Jones Cc: Marek Vasut , Linux Kernel Mailing List , Marek Vasut , Geert Uytterhoeven , Mark Brown , Steve Twiss , Wolfram Sang , Linux-Renesas Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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." > Personally /me is hoping that the 80 char limit is lifted to ~120 soon. Please no ;-) Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds