Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1373919ybk; Thu, 21 May 2020 05:30:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwklvAIO6DaAaXJMArIPWLhc7OJKOvg+vG+t25bQzmW1tH8CqPxmeGEv7eTIHQazSnrokk+ X-Received: by 2002:a05:6402:2211:: with SMTP id cq17mr7209556edb.171.1590064247413; Thu, 21 May 2020 05:30:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590064247; cv=none; d=google.com; s=arc-20160816; b=VcaZyryyBnqXPDpzcSS9Zuoo60DBxaJ9HyFFKKmPPJUBgieuI/dNgHJ37kMQkX0T16 iatQ6XMcvl4qWenG1u9e53ajtc1CxQNKb+EgsD6CK4WxWd8q/CKq7Ql5Rt96iJ70TxzN r+ElEMwK2a20k+nvn6UPVToF7q+Grbh6MmkIwJZm3R58p5IK7/uxGWBa7gjqKQCT5EHf FLWz6rM5oIxP796RQnp+n/ep+o/KiUnriWOIYmdqEfaRe0caJewuCP+yhgz2akCcWToo mj3BkUvp5/DLC3KNq9C7NCB3VnTh8n7STCfZsLFBrPjsxPsuoweKQ1OOV9UPFox81eY3 o8/Q== 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=IZ7CS4NJbb36gBFM7iksoxNTIp+cLNBvatf2Qrqvda0=; b=OyCkJ5mM7U+m3URLIuINcD6zoqVJWT2Ryz5zTrpAde96Ce5s/6MVBzf4HH33eNyeoU V6VDgcBWUtCO6G6jH6lDI11sLJZfRvPb/ve+rQCe/XTB5/y2mw3SL0+YpVV3Irqe+LPw y6re4NZyBQiGiw/Kncq3ZpNOeEA1D8ZkK6C7RitiDR1KUqouzkez1WIVt7+5TXIUwvWe y9GFG8LyAXohedlHPG8IKJMGXbRlWrbejym01iC1R1XKzPBgY2sgJATo4gTzmtR3jU6+ kJ5bj+NFSvigktgBKBZ6hWqX/fVpXqCLbgnnUfuF1AfOYk/xWi2K69buGtRNAqxHb6wV hgVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=NnCukASh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id o6si3341377ejd.595.2020.05.21.05.30.23; Thu, 21 May 2020 05:30:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=NnCukASh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1729289AbgEUM25 (ORCPT + 99 others); Thu, 21 May 2020 08:28:57 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:57940 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729194AbgEUM24 (ORCPT ); Thu, 21 May 2020 08:28:56 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200521122854euoutp02b60154046d6d05fcf4ef25e78548ad41~RCuf42-BG0319903199euoutp02Z for ; Thu, 21 May 2020 12:28:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200521122854euoutp02b60154046d6d05fcf4ef25e78548ad41~RCuf42-BG0319903199euoutp02Z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1590064134; bh=IZ7CS4NJbb36gBFM7iksoxNTIp+cLNBvatf2Qrqvda0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NnCukAShjdWJnjNlsnxyhKu5xMYA7AcHcYs4gnw44FJSxAXrwhkhpaQqzeJKMjYhp lSZkefUgBpnrN0VxM8JuCkzIuHcwvDbWAMjuXdMoO3m6MzD49qyMOJO/RgLiU8EFB6 Sqdn43ayrgt778dWlUl8q7gghVoi04mdgrv0iWJ8= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200521122854eucas1p13d58441e5d3560cf20fc7fd59a0da85e~RCufpeb3u2046020460eucas1p1r; Thu, 21 May 2020 12:28:54 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id B2.28.60698.60476CE5; Thu, 21 May 2020 13:28:54 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200521122854eucas1p2800cc56585f6f18512de270469cde59c~RCufLf5T_2575425754eucas1p2r; Thu, 21 May 2020 12:28:54 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200521122854eusmtrp1328491783e256f4b1fd7da9e24066663~RCufK3BiY2920829208eusmtrp1Z; Thu, 21 May 2020 12:28:54 +0000 (GMT) X-AuditID: cbfec7f5-a29ff7000001ed1a-19-5ec674061939 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id F7.8F.08375.50476CE5; Thu, 21 May 2020 13:28:54 +0100 (BST) Received: from AMDC3061.digital.local (unknown [106.120.51.75]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200521122853eusmtip26a086964120e0b4a5159e31bd4091706~RCuerkCOi1167511675eusmtip2i; Thu, 21 May 2020 12:28:53 +0000 (GMT) From: Sylwester Nawrocki To: georgi.djakov@linaro.org Cc: a.swigon@samsung.com, cw00.choi@samsung.com, b.zolnierkie@samsung.com, m.szyprowski@samsung.com, krzk@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Sylwester Nawrocki Subject: [PATCH v5 1/3] interconnect: Export of_icc_get_from_provider() Date: Thu, 21 May 2020 14:28:39 +0200 Message-Id: <20200521122841.8867-2-s.nawrocki@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200521122841.8867-1-s.nawrocki@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrBKsWRmVeSWpSXmKPExsWy7djPc7psJcfiDE5NVrK4P6+V0WLjjPWs Fte/PGe1mL53E5vF+fMb2C0u75rDZvG59wijxYzz+5gs1h65y25x+E07qwOXx6ZVnWwed67t YfPo27KK0ePzJrkAligum5TUnMyy1CJ9uwSujCUfZrIVTBKsWHm0gb2B8SZfFyMnh4SAicT5 nhNsXYxcHEICKxglNm/sYYFwvjBKfJ18FCrzmVFi5/zljDAtVy58YIRILGeUeH2jlRmuZeW/ a+wgVWwChhK9R/vAOkQEZCT2NE1iBSliFmhikri5eAPQEg4OYQF3iW/rokFMFgFViUnLk0DK eQWsJFbu62eBWCYvsXrDAWYQm1PAWmLbsSlMEDWCEidnPgGrYQaqad46G+wGCYFt7BLT/k1k g2h2kVj65y8zhC0s8er4FnYIW0bi9GSIPyUEmhklenbfZodwJjBK3D++AOpPa4k7536xgVzH LKApsX6XPkTYUeJr1y9mkLCEAJ/EjbeCEEfwSUzaNh0qzCvR0SYEUa0i8XvVdCYIW0qi+8l/ FogSD4nN/dETGBVnIflmFpJvZiGsXcDIvIpRPLW0ODc9tdg4L7Vcrzgxt7g0L10vOT93EyMw /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pn9snfM0s3b+o24dj9trazPmrXJ7MHtmS8Z/r9uvWXRf66dX5ZWcU9zEkmfwyPee GbNHsnGQ2Km/7SH5wezzdn/fkLgu/biNuXnX9oufZfljfzJFXFp2iXFSgaFvN5Pna23tjAJl TiWW4oxEQy3mouJEAOJEL5O+AgAA X-CMS-MailID: 20200521122854eucas1p2800cc56585f6f18512de270469cde59c X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200521122854eucas1p2800cc56585f6f18512de270469cde59c X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200521122854eucas1p2800cc56585f6f18512de270469cde59c References: <20200521122841.8867-1-s.nawrocki@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Artur Świgoń This patch makes the above function public (for use in exynos-bus devfreq driver). Signed-off-by: Artur Świgoń Reviewed-by: Krzysztof Kozlowski Reviewed-by: Chanwoo Choi Signed-off-by: Sylwester Nawrocki --- 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 ece2a57..1b51e0c 100644 --- a/drivers/interconnect/core.c +++ b/drivers/interconnect/core.c @@ -334,7 +334,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; @@ -353,6 +353,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); static void devm_icc_release(struct device *dev, void *res) { diff --git a/include/linux/interconnect-provider.h b/include/linux/interconnect-provider.h index 0c49453..c92be2a 100644 --- a/include/linux/interconnect-provider.h +++ b/include/linux/interconnect-provider.h @@ -103,6 +103,7 @@ void icc_node_del(struct icc_node *node); int icc_nodes_remove(struct icc_provider *provider); 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 @@ -154,6 +155,11 @@ static inline int icc_provider_del(struct icc_provider *provider) return -ENOTSUPP; } +static inline 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.7.4