From patchwork Mon Oct 8 08:39:07 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 1564491 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 4E791DFFAD for ; Mon, 8 Oct 2012 08:43:12 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TL8tQ-000200-2u; Mon, 08 Oct 2012 08:40:52 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TL8sa-0001gz-MT for linux-arm-kernel@lists.infradead.org; Mon, 08 Oct 2012 08:40:01 +0000 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MBK00J1IFZAC2S0@mailout3.samsung.com> for linux-arm-kernel@lists.infradead.org; Mon, 08 Oct 2012 17:39:59 +0900 (KST) X-AuditID: cbfee61b-b7f2b6d000000f14-b4-5072915f5bb3 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id E3.21.03860.F5192705; Mon, 08 Oct 2012 17:39:59 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MBK0094QG1I1U90@mmp2.samsung.com> for linux-arm-kernel@lists.infradead.org; Mon, 08 Oct 2012 17:39:59 +0900 (KST) From: Tomasz Figa To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 07/16] pinctrl: samsung: Hold OF node of pin bank in bank struct Date: Mon, 08 Oct 2012 10:39:07 +0200 Message-id: <1349685556-23718-8-git-send-email-t.figa@samsung.com> X-Mailer: git-send-email 1.7.10 In-reply-to: <1349685556-23718-1-git-send-email-t.figa@samsung.com> References: <1349685556-23718-1-git-send-email-t.figa@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrIJMWRmVeSWpSXmKPExsVy+t9jQd34iUUBBosb1S02Pb7G6sDosXlJ fQBjFJdNSmpOZllqkb5dAlfGxDmr2Aumc1c8PCjXwDifs4uRk0NCwERi9cL/zBC2mMSFe+vZ uhi5OIQEpjNKPNvczgzhbGaSeH1lGStIFZuAmsTnhkdsILaIgIbElK7H7CA2s8BkJoljC9JB bGGBAIn1v66DTWURUJV4+W8DmM0r4CRx6s4rqG3yEk/v94HN4RRwljj5cz7YfCGgmiWXLrNM YORdwMiwilE0tSC5oDgpPddIrzgxt7g0L10vOT93EyPY48+kdzCuarA4xCjAwajEw/tRryhA iDWxrLgy9xCjBAezkghvaj9QiDclsbIqtSg/vqg0J7X4EKM0B4uSOG+zR0qAkEB6Yklqdmpq QWoRTJaJg1OqgXGuYt2BazenLo06scVtUv3pjUGvn223ev5kx8N+X4W3bzKYN4rWloY7y+7s fMt8IK1Wc4sKK1+r2ow7014eWOupueSNlKJ1/peNC7OceD9kn9TdM+f8apGlKV/dWBdVr595 944Ev0vwdrd+tqv8Qbc++/1et3xnUrnCpbqnlqkpzz7UHhVdoPdUiaU4I9FQi7moOBEAQhz0 yPQBAAA= X-Spam-Note: CRM114 invocation failed X-Spam-Score: -9.0 (---------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-9.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [203.254.224.33 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -2.1 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; }; /**