From patchwork Mon Sep 12 07:36:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Horman X-Patchwork-Id: 668620 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3sXflG3JWWz9sf6 for ; Mon, 12 Sep 2016 17:36:58 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=verge.net.au header.i=@verge.net.au header.b=rL43wMX+; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756917AbcILHg5 (ORCPT ); Mon, 12 Sep 2016 03:36:57 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:33305 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755743AbcILHgz (ORCPT ); Mon, 12 Sep 2016 03:36:55 -0400 Received: from penelope.kanocho.kobe.vergenet.net (unknown [217.111.208.18]) by kirsty.vergenet.net (Postfix) with ESMTPSA id E058925B7C2; Mon, 12 Sep 2016 17:36:46 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verge.net.au; s=mail; t=1473665807; bh=S9zTkdvnIqMR2eTjZSd0oAstKVRznR9xYsZkA65kDeI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rL43wMX+Qh9T6OfFZjhikLFQ5Irnsz3xisP8pacwvQPXnqrEu2slUUeLzmTXWSabA 77QTNyytHNghctJVhYOHuuq+AwPqP8nVlFOuUKfy+Nt9pI9hgkFenJmePWSc5bjMkl cL08oVPjPSNjb+do2QkPIuZoynv/jBGSZWuprcY0= Received: by penelope.kanocho.kobe.vergenet.net (Postfix, from userid 7100) id 6780D60E8B; Mon, 12 Sep 2016 09:36:43 +0200 (CEST) From: Simon Horman To: Geert Uytterhoeven Cc: Laurent Pinchart , Linus Walleij , Magnus Damm , linux-renesas-soc@vger.kernel.org, linux-gpio@vger.kernel.org, Simon Horman Subject: [PATCH v2 1/3] pinctrl: sh-pfc: Add PORT_GP_24 helper macro Date: Mon, 12 Sep 2016 09:36:33 +0200 Message-Id: <1473665795-7418-2-git-send-email-horms+renesas@verge.net.au> X-Mailer: git-send-email 2.7.0.rc3.207.g0ac5344 In-Reply-To: <1473665795-7418-1-git-send-email-horms+renesas@verge.net.au> References: <1473665795-7418-1-git-send-email-horms+renesas@verge.net.au> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org This follows the style of existing PORT_GP_X macros and will be used by a follow-up patch for the r8a7791 SoC. Signed-off-by: Simon Horman Reviewed-by: Geert Uytterhoeven --- v2 * Rebase --- drivers/pinctrl/sh-pfc/sh_pfc.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/sh-pfc/sh_pfc.h b/drivers/pinctrl/sh-pfc/sh_pfc.h index c24067edcec4..2345421103db 100644 --- a/drivers/pinctrl/sh-pfc/sh_pfc.h +++ b/drivers/pinctrl/sh-pfc/sh_pfc.h @@ -422,9 +422,13 @@ extern const struct sh_pfc_soc_info shx3_pinmux_info; PORT_GP_CFG_1(bank, 22, fn, sfx, cfg) #define PORT_GP_23(bank, fn, sfx) PORT_GP_CFG_23(bank, fn, sfx, 0) -#define PORT_GP_CFG_26(bank, fn, sfx, cfg) \ +#define PORT_GP_CFG_24(bank, fn, sfx, cfg) \ PORT_GP_CFG_23(bank, fn, sfx, cfg), \ - PORT_GP_CFG_1(bank, 23, fn, sfx, cfg), \ + 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) \ + PORT_GP_CFG_24(bank, fn, sfx, cfg), \ PORT_GP_CFG_1(bank, 24, 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)