From patchwork Sun Feb 25 18:13:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 877592 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-gpio-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=cogentembedded.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=cogentembedded-com.20150623.gappssmtp.com header.i=@cogentembedded-com.20150623.gappssmtp.com header.b="PDO0YVNM"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3zqCkC6trvz9s1q for ; Mon, 26 Feb 2018 05:13:07 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751874AbeBYSNG (ORCPT ); Sun, 25 Feb 2018 13:13:06 -0500 Received: from mail-lf0-f68.google.com ([209.85.215.68]:45056 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751864AbeBYSNF (ORCPT ); Sun, 25 Feb 2018 13:13:05 -0500 Received: by mail-lf0-f68.google.com with SMTP id x196so19011559lfd.12 for ; Sun, 25 Feb 2018 10:13:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:from:to:cc:references:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=z/vCuPn3xlhL4NKDyaDDDffxtOMFOjTcpwJ5N6S1LLk=; b=PDO0YVNM7jlcgQ/9FEgHQH38nxPoyI0maqtGqq93urzz+ato94jElqxanGUb04pF1u sfvEL4LbaiMfVGoROQJIm/1M8wBlnRYFiEEfNL926+9cgC0z1bKtGhnm7mFo1jgn27if Zv3G6CamOF8GEaHNQ0ZC9ovHbxnJoTcQOFWt1yXzD9rhSTYHkb0vOQV58jQ04paNZEsP zvR+exbW/gEhYYIzZ6t96DG8hNO6JLHH1bNPJs5Z27AAcopQD9Y0PehyHjkXT50YSz7P 8fNxncL5iBAsgKWhZuBjfqTgU4zn1utfSrpYwbKkCHqH7X4Y3fVqKEsJs4cGrSPDVQ+j jRQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=z/vCuPn3xlhL4NKDyaDDDffxtOMFOjTcpwJ5N6S1LLk=; b=epi8uoLbbsWuO3a84YkOFgXq4WvFk27RhGvYQTKQ/aOS1kmj5lnzegVL1udDYD3CpD nUxX4mzGAtvDXfwj+rRhGnYSxXC4bzc6z3g3xd6d71wPnDJ0GZ0ABuVX7/mj0y1Xp08f QbX7k5plEpnBRp0BxbwfFYFpPsOxL3F5Ne+q/0kczaUokovwxNwN1FOqVfoPJfWMRx/K jqXcAMkG0OGonAFS/pkSNriHtk0/z4WHVFaelVVpXpZgDVO8EGqZZ5ApRHS/jKFmB0Wc AMAn8ai7CHsKBKR3n+YBLXku1F8RaLJCvjGlHEjcnzOnEr4PwbcIXEyufw89eWNhm4pL ApMA== X-Gm-Message-State: APf1xPBVjGRmJ9nwbsbF83bsCwF/eJ5fSkdSETI6v3j0YcqRtWKE7k9Z p/hPM/CIZ9HYx2Q1ZORTW8gR7A== X-Google-Smtp-Source: AG47ELuwyL7Mx3Mn9FQx+GmwDiVJ3ig/jf9IokD9IIX5L0SmUY3X7fNgWpWUCF4b/uRC5XqA35+lOg== X-Received: by 10.25.204.78 with SMTP id c75mr5787198lfg.39.1519582384299; Sun, 25 Feb 2018 10:13:04 -0800 (PST) Received: from wasted.cogentembedded.com ([31.173.82.233]) by smtp.gmail.com with ESMTPSA id k8sm1578571ljk.63.2018.02.25.10.13.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Feb 2018 10:13:03 -0800 (PST) Subject: [PATCH 1/2] pinctrl: sh-pfc: add PORT_GP_CFG_25() helper macro From: Sergei Shtylyov To: Linus Walleij , Rob Herring , Geert Uytterhoeven , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org Cc: Mark Rutland , Laurent Pinchart References: Organization: Cogent Embedded Message-ID: <26e823ef-759f-16e7-f3da-ac6ce7c01ad3@cogentembedded.com> Date: Sun, 25 Feb 2018 21:13:02 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-MW Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org They follow the style of the existing PORT_GP_CFG_() macros and will be used by a follow-up patch for the R8A77980 SoC. Based on the original (and large) patch by Vladimir Barinov. Signed-off-by: Vladimir Barinov Signed-off-by: Sergei Shtylyov Reviewed-by: Geert Uytterhoeven --- drivers/pinctrl/sh-pfc/sh_pfc.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: renesas/drivers/pinctrl/sh-pfc/sh_pfc.h =================================================================== --- renesas.orig/drivers/pinctrl/sh-pfc/sh_pfc.h +++ renesas/drivers/pinctrl/sh-pfc/sh_pfc.h @@ -470,9 +470,13 @@ extern const struct sh_pfc_soc_info shx3 PORT_GP_CFG_1(bank, 23, fn, sfx, cfg) #define PORT_GP_24(bank, fn, sfx) PORT_GP_CFG_24(bank, fn, sfx, 0) -#define PORT_GP_CFG_26(bank, fn, sfx, cfg) \ +#define PORT_GP_CFG_25(bank, fn, sfx, cfg) \ PORT_GP_CFG_24(bank, fn, sfx, cfg), \ - PORT_GP_CFG_1(bank, 24, fn, sfx, cfg), \ + PORT_GP_CFG_1(bank, 24, fn, sfx, cfg) +#define PORT_GP_25(bank, fn, sfx) PORT_GP_CFG_25(bank, fn, sfx, 0) + +#define PORT_GP_CFG_26(bank, fn, sfx, cfg) \ + PORT_GP_CFG_25(bank, fn, sfx, cfg), \ PORT_GP_CFG_1(bank, 25, fn, sfx, cfg) #define PORT_GP_26(bank, fn, sfx) PORT_GP_CFG_26(bank, fn, sfx, 0)