Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8826251ybi; Tue, 23 Jul 2019 16:08:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwRE4EzrOuwIiUEH2xvBWk1+GbzBhRBXWKcGISkXK/cgVNe/miGBC7F2bRUdsRXEIryzRq7 X-Received: by 2002:a62:1807:: with SMTP id 7mr7951209pfy.149.1563923282688; Tue, 23 Jul 2019 16:08:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563923282; cv=none; d=google.com; s=arc-20160816; b=eKblE1pMkWmghWZuG4Tet+Z1I04/NDlBWAFRTNrQ0/jRN/tbyEKuvbkOk8E/GkfBIR VRiYOeyYn/YvEG57ZaelF4EivSlmhmYCx2kIZFBMYsUw9nQ6mBmnHJy8jsY9wz034yld qmAfA3aYkf7A2a5uFXEOyzGClmnEnmCJPa/jgE/wd9WC6M74INIqucB6C/xDf1i64ihF xleA5DbXupWInwKsEP3JVkIvN6rSSGBvVUR1GVx6FeGoEDOKuzaeEidvikxlGKBrBltR 2RQ5S6qqA+BnCK9dt5Wu1vY+0VMoG4D2wIZaKUqEv/iT1yUHRBWmZyHtGambsJksv64j 0A9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:mime-version:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=69sx8Ho8WYsPHRFweup85Ar55fYbxmZw5YIq9XlVhhE=; b=n9C49v4D0Ur/78te2n4ixoAzSOL3yz22BO6bHOd8Ucw9x03Ds2RsO4x1x5qFX11GZp Chn/RV7U+RUEAbEF+K4G1pgHKp+Sj4R7O4Z6gEce33QrhQDNKTqooTwAOL3Pj5BFJ/Z3 Py9YcgGvRpCamJWWgmA7izFP+hbU7Ce+c0KiHN7NBdJnDVvJKAMZsCEAGF2zeKMW4Ydr i8ORpF4eL9sOhVujFR4DAGe7rIDqncbLlmDLwm2ClbpTYreoYveygkVeUrshL5hfbdlB +Mo1/rv0A5Ypb28qkiE+OT50iwHeHTFJ3kfmtz8ibgrSFIGOBq6iS5AHi+P9a9UmrmqL AkLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=UUMiMS8r; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i23si13252696pfa.196.2019.07.23.16.07.46; Tue, 23 Jul 2019 16:08: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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=UUMiMS8r; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389772AbfGWMUj (ORCPT + 99 others); Tue, 23 Jul 2019 08:20:39 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:38705 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389717AbfGWMU3 (ORCPT ); Tue, 23 Jul 2019 08:20:29 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190723122027euoutp01a014adaeb1c6b148dee7f38cd4f1952d~0CJnRdKpT2875828758euoutp01U for ; Tue, 23 Jul 2019 12:20:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190723122027euoutp01a014adaeb1c6b148dee7f38cd4f1952d~0CJnRdKpT2875828758euoutp01U DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1563884427; bh=69sx8Ho8WYsPHRFweup85Ar55fYbxmZw5YIq9XlVhhE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UUMiMS8rcDKWYgE9JDpSXyrW2C/qVYaHwu/wbPvKqmsUEuGa5VRBnPlZromlcP7Mx fbSINPeJEhHU44dcWyOuSwl6rwTYuEFk1Rbpzs3eQtF1vubr0RJILay34ncj+SXh94 0G4Ye/ncfa+oc0XnGp7cTPnUGSHP6E2RPqn6qmhQ= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190723122026eucas1p1f335ee2bd2411aaba4b3ccdda8ae2cfe~0CJme7mvZ0728407284eucas1p17; Tue, 23 Jul 2019 12:20:26 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 9A.0C.04377.A8BF63D5; Tue, 23 Jul 2019 13:20:26 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190723122025eucas1p251df372451e0b27ad7f2e3c89df60b64~0CJlrL8tN2751727517eucas1p2d; Tue, 23 Jul 2019 12:20:25 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190723122025eusmtrp1f6762be756a6f02ff6df821cd5e17030~0CJlgYUKY2491824918eusmtrp1b; Tue, 23 Jul 2019 12:20:25 +0000 (GMT) X-AuditID: cbfec7f4-113ff70000001119-ad-5d36fb8ae00a Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 4A.41.04146.98BF63D5; Tue, 23 Jul 2019 13:20:25 +0100 (BST) Received: from AMDC3555.DIGITAL.local (unknown [106.120.51.67]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190723122024eusmtip27564000c231ee8652f0e0023861fb0d6~0CJk5pYbi1612616126eusmtip2K; Tue, 23 Jul 2019 12:20:24 +0000 (GMT) From: =?UTF-8?q?Artur=20=C5=9Awigo=C5=84?= To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: krzk@kernel.org, cw00.choi@samsung.com, myungjoo.ham@samsung.com, inki.dae@samsung.com, sw0312.kim@samsung.com, georgi.djakov@linaro.org, m.szyprowski@samsung.com Subject: [RFC PATCH 05/11] icc: Export of_icc_get_from_provider() Date: Tue, 23 Jul 2019 14:20:10 +0200 Message-Id: <20190723122016.30279-6-a.swigon@partner.samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190723122016.30279-1-a.swigon@partner.samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrPKsWRmVeSWpSXmKPExsWy7djP87pdv81iDT7N4bU4dGwru8XGGetZ La5/ec5qMf/IOVaLK1/fs1lM37uJzWLS/QksFufPb2C32PT4GqvF5V1z2Cw+9x5htJhxfh+T xdojd9ktbjeuYLOYMfklmwO/x6ZVnWwed67tYfO4332cyWPzknqPg+/2MHn0bVnF6PF5k1wA exSXTUpqTmZZapG+XQJXxt3jl5kLXvBXPOy8xdjAuIe3i5GDQ0LAROJqs3sXIxeHkMAKRomX n+8xQThfGCV+dX5jgXA+M0pcv3wIKMMJ1rHy0n2oxHJGieZZz1nhWr7OvccKUsUm4CnRM3EH WEJE4AijxOQF78FamAVWATnftzGCbBcWcJTYtbEKpIFFQFXixJYOFhCbFyi8pKGHEWKdvMTq DQeYQWxOASeJrqPtbBA1ghInZz4Bq2cGqmneOpsZZL6EwEd2iV97NkE1u0j8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RGwVlIqmYhVM1CUrWAkXkVo0hqaXFuem6xoV5xYm5xaV66 XnJ+7iZGYJRuO/Zz8w7GSxuDDzEKcDAq8fBu2GMaK8SaWFZcmXuIUYKDWUmEN7DBLFaINyWx siq1KD++qDQntfgQoynQaxOZpUST84EJJK8k3tDU0NzC0tDc2NzYzEJJnLdD4GCMkEB6Yklq dmpqQWoRTB8TB6dUA6N/5Vm3R2LR8xyf9c01epf+1Fbg1qOvLO7TrBvnRlmcOPc4Sr0m70ae cdDW16nb9r6MVLNcJvyKzYzzWfOs8kvyqexCTFem/EtuET7tdE/8aUl15pupj99Nff0ibdbE fS/OnIvOaf/n8lqpbcqvHsN/0+NYbCx3JEz80ma8IcZeZZIW28VC6zglluKMREMt5qLiRABm fgMp6AIAAA== X-CMS-MailID: 20190723122025eucas1p251df372451e0b27ad7f2e3c89df60b64 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190723122025eucas1p251df372451e0b27ad7f2e3c89df60b64 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190723122025eucas1p251df372451e0b27ad7f2e3c89df60b64 References: <20190723122016.30279-1-a.swigon@partner.samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch makes the above function public (for use in exynos-bus devfreq driver). Signed-off-by: Artur Świgoń --- drivers/interconnect/core.c | 3 ++- include/linux/interconnect-provider.h | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/interconnect/core.c b/drivers/interconnect/core.c index 871eb4bc4efc..d566ae0b66c0 100644 --- a/drivers/interconnect/core.c +++ b/drivers/interconnect/core.c @@ -274,7 +274,7 @@ EXPORT_SYMBOL_GPL(of_icc_xlate_onecell); * Returns a valid pointer to struct icc_node on success or ERR_PTR() * on failure. */ -static struct icc_node *of_icc_get_from_provider(struct of_phandle_args *spec) +struct icc_node *of_icc_get_from_provider(struct of_phandle_args *spec) { struct icc_node *node = ERR_PTR(-EPROBE_DEFER); struct icc_provider *provider; @@ -293,6 +293,7 @@ static struct icc_node *of_icc_get_from_provider(struct of_phandle_args *spec) return node; } +EXPORT_SYMBOL_GPL(of_icc_get_from_provider); /** * of_icc_get() - get a path handle from a DT node based on name diff --git a/include/linux/interconnect-provider.h b/include/linux/interconnect-provider.h index 63caccadc2db..9ecfc518b952 100644 --- a/include/linux/interconnect-provider.h +++ b/include/linux/interconnect-provider.h @@ -97,6 +97,7 @@ void icc_node_add(struct icc_node *node, struct icc_provider *provider); void icc_node_del(struct icc_node *node); int icc_provider_add(struct icc_provider *provider); int icc_provider_del(struct icc_provider *provider); +struct icc_node *of_icc_get_from_provider(struct of_phandle_args *spec); #else @@ -137,6 +138,11 @@ static inline int icc_provider_del(struct icc_provider *provider) return -ENOTSUPP; } +struct icc_node *of_icc_get_from_provider(struct of_phandle_args *spec) +{ + return ERR_PTR(-ENOTSUPP); +} + #endif /* CONFIG_INTERCONNECT */ #endif /* __LINUX_INTERCONNECT_PROVIDER_H */ -- 2.17.1