From patchwork Fri Sep 28 14:28:37 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 1519861 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 702F13FE80 for ; Fri, 28 Sep 2012 14:33:25 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1THbaZ-0003rw-AE; Fri, 28 Sep 2012 14:30:47 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1THbZR-0003YZ-Rz for linux-arm-kernel@lists.infradead.org; Fri, 28 Sep 2012 14:29:39 +0000 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MB2009Y9DKZWD10@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 28 Sep 2012 23:29:36 +0900 (KST) X-AuditID: cbfee61a-b7f726d000000ec7-6a-5065b450e788 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 0B.19.03783.054B5605; Fri, 28 Sep 2012 23:29:36 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MB200E7BDK3XB70@mmp1.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 28 Sep 2012 23:29:36 +0900 (KST) From: Tomasz Figa To: linux-arm-kernel@lists.infradead.org Subject: [RFC PATCH 06/16] pinctrl: samsung: Hold OF node of pin bank in bank struct Date: Fri, 28 Sep 2012 16:28:37 +0200 Message-id: <1348842527-22460-7-git-send-email-t.figa@samsung.com> X-Mailer: git-send-email 1.7.10 In-reply-to: <1348842527-22460-1-git-send-email-t.figa@samsung.com> References: <1348842527-22460-1-git-send-email-t.figa@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrPJMWRmVeSWpSXmKPExsVy+t9jAd2ALakBBt8W61lsenyN1YHRY/OS +gDGKC6blNSczLLUIn27BK6MiXNWsRdM5654eFCugXE+ZxcjJ4eEgInE/SPP2SFsMYkL99az dTFycQgJLGKUWDFrNiOEs5lJ4trMSawgVWwCahKfGx6xgdgiAhoSU7oeg3UzC0xmkji2IB3E FhYIkzj+bx4ziM0ioCpx8fVJoF4ODl4BJ4lf76EWy0s8vd/HBhLmFHCWWDtPAyQsBFTR/6eB ZQIj7wJGhlWMoqkFyQXFSem5hnrFibnFpXnpesn5uZsYwd5+JrWDcWWDxSFGAQ5GJR5ei5Up AUKsiWXFlbmHGCU4mJVEeDOKUwOEeFMSK6tSi/Lji0pzUosPMUpzsCiJ8zZ7AFULpCeWpGan phakFsFkmTg4pRoY+4Km65VxbM/tmzlRnlPHWL7d4tUskxW+4dfZLyYXTPqzMvvGpWtb+rZZ T6+5tSiULfFZ8ucfyZ/FNltP5BDz3fzDT/Qah9vzgyoODKLnePLnp4tO3TLfYpW/Zmi9zz2X t+UpO5mO7T7zc4GX8bsjr+/4CtwqfCH8wEp6V9HPiIp1U2Km8AsnKbEUZyQaajEXFScCAHpv 2lTyAQAA X-Spam-Note: CRM114 invocation failed X-Spam-Score: -7.7 (-------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-7.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [203.254.224.25 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.8 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: kgene.kim@samsung.com, swarren@wwwdotorg.org, devicetree-discuss@lists.ozlabs.org, tomasz.figa@gmail.com, t.figa@samsung.com, kyungmin.park@samsung.com, linux-samsung-soc@vger.kernel.org, thomas.abraham@linaro.org, linus.walleij@linaro.org, m.szyprowski@samsung.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The node pointer will be used in extensions added by patches that will follow. Signed-off-by: Tomasz Figa --- drivers/pinctrl/pinctrl-samsung.c | 1 + drivers/pinctrl/pinctrl-samsung.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/drivers/pinctrl/pinctrl-samsung.c b/drivers/pinctrl/pinctrl-samsung.c index 962320b..c988a4e 100644 --- a/drivers/pinctrl/pinctrl-samsung.c +++ b/drivers/pinctrl/pinctrl-samsung.c @@ -850,6 +850,7 @@ static int samsung_pinctrl_parse_dt_bank(struct samsung_pin_bank *bank, return ret; bank->nr_pins = val; + bank->of_node = np; bank->name = np->name; if (!of_find_property(np, "interrupt-controller", NULL)) { diff --git a/drivers/pinctrl/pinctrl-samsung.h b/drivers/pinctrl/pinctrl-samsung.h index 72303f1..b7b74cc 100644 --- a/drivers/pinctrl/pinctrl-samsung.h +++ b/drivers/pinctrl/pinctrl-samsung.h @@ -111,6 +111,7 @@ struct samsung_pinctrl_drv_data; * @eint_type: type of the external interrupt supported by the bank. * @irq_base: starting controller local irq number of the bank. * @name: name to be prefixed for each pin in this pin bank. + * @of_node: node of pin bank in device tree */ struct samsung_pin_bank { u32 pctl_offset; @@ -125,6 +126,8 @@ struct samsung_pin_bank { u32 eint_offset; u32 irq_base; const char *name; + + struct device_node *of_node; }; /**