Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp4388411imd; Tue, 30 Oct 2018 00:46:03 -0700 (PDT) X-Google-Smtp-Source: AJdET5dG4Ezqb7TtDAOIsfdz1Nhl5pq8n/kcRDciTDRKaK2F+yrS/Jp/+Mi3gIG+0n5CSfZDspwf X-Received: by 2002:a62:1416:: with SMTP id 22-v6mr1866429pfu.114.1540885563004; Tue, 30 Oct 2018 00:46:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540885562; cv=none; d=google.com; s=arc-20160816; b=GC0KvZVhwMyL/m146gX8LW6vbjVh5hX31AwfwEZxksbuKbFNtgKlHDOJFlYQlmlmql y9txONeCvDm4/ZkiBKiL6pgNiWa8lSDilz2kb2tD6piR1wIzIfR9L/vmXI/MkhS+B2Ut v8wPWI1vCjxtufGnofiif8HU6c+e2JBKAOgAa/vzikLZ6tKGRHqNMmEtk+98Vp3cMWww 7h+k5rSSGvLI6luUz283dRD1N/v4K9fYJkOK6mTn73+aSXKg7snnZuY3YAUqSWzcX0Sc k9n7TNrLESENmKuMmDLxXRH4j8VaCWdNGEuxLAnv5KjQxuBSN9jtD/BJzJ8HCyuwEfMJ lyRQ== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=SMgi0Srie42abd1MhD5/J/FrGI8E7Mx3KDI4WtjoR/Y=; b=FW/DU5FHcd61c/5CW4O7ff+Q8FnoBSedqiQ8Lv8MgQ+oFPrEzBjhE6AWNErd3bhgmi SmIKzkF7U7KnoyUklQiOlopa+BfLebzrTNXbc6oRgVAnXp6vJjSEa44fkb0pZp1UzKdv jxAnoWiMG8NyA6VNNg0WTQ7ZaeYpMdPtA89M+jrXOLxdBSKEAAU1WVQwQ411WWfBoniH ylV3o/a+D832/LhCAD92SNzZPZaPaLK9ypUfkZavGhGiP+xhcsMAZ++Q5hTnJoCgOgi9 aW1rjZG6TvrRRHUbLA8ZXeNUmHrtgS2CReeLyk5D41BYbu/IiCEpcW3gjx9Dzp+pxrDj ReQQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i3-v6si14617492plb.140.2018.10.30.00.45.46; Tue, 30 Oct 2018 00:46:02 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726549AbeJ3Qhh (ORCPT + 99 others); Tue, 30 Oct 2018 12:37:37 -0400 Received: from mslow2.mail.gandi.net ([217.70.178.242]:33700 "EHLO mslow2.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726158AbeJ3Qhh (ORCPT ); Tue, 30 Oct 2018 12:37:37 -0400 Received: from relay7-d.mail.gandi.net (unknown [217.70.183.200]) by mslow2.mail.gandi.net (Postfix) with ESMTP id AAFEB3A2771; Tue, 30 Oct 2018 08:34:51 +0100 (CET) X-Originating-IP: 2.224.242.101 Received: from w540 (2-224-242-101.ip172.fastwebnet.it [2.224.242.101]) (Authenticated sender: jacopo@jmondi.org) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 6ABA220011; Tue, 30 Oct 2018 07:34:46 +0000 (UTC) Date: Tue, 30 Oct 2018 08:34:44 +0100 From: jacopo mondi To: Ulrich Hecht Cc: Jacopo Mondi , geert+renesas@glider.be, laurent.pinchart@ideasonboard.com, horms@verge.net.au, linus.walleij@linaro.org, linux-renesas-soc@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] pinctrl: sh-pfc: Introduce VIN_DATA_PIN_GROUP_VER Message-ID: <20181030073444.GE15991@w540> References: <1540836824-4636-1-git-send-email-jacopo+renesas@jmondi.org> <1540836824-4636-2-git-send-email-jacopo+renesas@jmondi.org> <1822236810.335136.1540871186977@webmail.strato.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="sT9gWZPUZYhvPS56" Content-Disposition: inline In-Reply-To: <1822236810.335136.1540871186977@webmail.strato.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --sT9gWZPUZYhvPS56 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Hi Uli, On Tue, Oct 30, 2018 at 04:46:26AM +0100, Ulrich Hecht wrote: > > > On October 29, 2018 at 7:13 PM Jacopo Mondi wrote: > > > > > > VIN data groups may appear on different sets of pins, usually named > > "vinX_data_[a|b]". The existing VIN_DATA_PIN_GROUP() does not support appending > > the 'a' or 'b' suffix, leading to the definition of groups names not consistent > > with the ones defined using SH_PFC_PIN_GROUP() macro. > > > > Fix this by adding a macro that supports appending suffixes when required. > > > > Signed-off-by: Jacopo Mondi > > --- > > drivers/pinctrl/sh-pfc/sh_pfc.h | 20 +++++++++++++++----- > > 1 file changed, 15 insertions(+), 5 deletions(-) > > > > diff --git a/drivers/pinctrl/sh-pfc/sh_pfc.h b/drivers/pinctrl/sh-pfc/sh_pfc.h > > index 458ae0a..2930e9a 100644 > > --- a/drivers/pinctrl/sh-pfc/sh_pfc.h > > +++ b/drivers/pinctrl/sh-pfc/sh_pfc.h > > @@ -54,17 +54,27 @@ struct sh_pfc_pin_group { > > > > /* > > * Using union vin_data saves memory occupied by the VIN data pins. > > - * VIN_DATA_PIN_GROUP() is a macro used to describe the VIN pin groups > > - * in this case. > > + * > > + * VIN_DATA_PIN_GROUP() is a macro used to describe the VIN pin groups, > > Maybe fix the odd spacing, while you're at it? Ups, I have missed it. Thanks, I'll wait for more feedbacks and add your tag to the next version. Thanks j > > > + * while VIN_DATA_PIN_GROUP_VER() is used when the same pin group can appear > > + * on different sets of pins. > > */ > > -#define VIN_DATA_PIN_GROUP(n, s) \ > > - { \ > > - .name = #n#s, \ > > +#define __VIN_DATA_PIN_GROUP(n, s) \ > > .pins = n##_pins.data##s, \ > > .mux = n##_mux.data##s, \ > > .nr_pins = ARRAY_SIZE(n##_pins.data##s), \ > > } > > > > +#define VIN_DATA_PIN_GROUP(n, s) \ > > + { \ > > + .name = #n#s, \ > > + __VIN_DATA_PIN_GROUP(n, s) > > + > > +#define VIN_DATA_PIN_GROUP_VER(n, v, s) \ > > + { \ > > + .name = #n#s"_"#v, \ > > + __VIN_DATA_PIN_GROUP(n##_##v, s) > > + > > union vin_data { > > unsigned int data24[24]; > > unsigned int data20[20]; > > -- > > 2.7.4 > > > > With or without the whitespace fix: > > Reviewed-by: Ulrich Hecht > > CU > Uli --sT9gWZPUZYhvPS56 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABCAAGBQJb2AmUAAoJEHI0Bo8WoVY8TFQQAIsZnPDnlNBvl+MeaWF+O0QP 85Ej7Az3Evfmz/ZMQTrNUyLbdhRMmmrYxnnURldaJA2WVZgvmQbWWGDjRLdppg2E tMoAXnbyBqVOsb26aQjIlHil+J2Qh95fFqv/u3gXQm9k2GRDG4/eUVsvFMSHbev3 T3FXOpLIPdx6C6XHdAy1tMgnkzlGzIDKFoDRvUt/2s0MIdcTO9UNyIAmFUjlc+gq YIKDJK8JjJxKuSZY2o9SeHk6Fh5F9FQv2JLl8xIZzFbV6yoYUPoB5qht+0NAObot HD+NxlMlFCFP/lvBgPRgAzREhwvzKrvRhD8UMydGPy9R4Y+AQ2Qf32Bgw+VnZnho 9uceAQ6yYzA477/7llFKfnO/429DmiPhjuiT/POBEyXtAPGOwV7RkzYBQdDVyjPi gjEEk4LDwpxAuHhG0MMgW3xLDCbl9G8R0lZTuoDZMX6LJOycZuHn+6yb4hFDr3/X 2mGtXp2Y6cX9nsMSTEZMM6YJ5iNBdkNza0r7Jc/IuL+fLh88ihfnUdGcP7kEOArO EhO9r4vVydMGofYV1bGs36oTkjWzvhovxjLz8wR55TiWIX+Ipk/ZhywKXtstdgKk Rc49j4jwzK3gPqtct8K6Nw4+bKWpyUiNsH50MrYKO6GRc63Gpk2mzuFUlxVzNCpr 78LjLBmbMlfvtXs/JC9u =/rtT -----END PGP SIGNATURE----- --sT9gWZPUZYhvPS56--