Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7854687ybl; Thu, 16 Jan 2020 06:43:57 -0800 (PST) X-Google-Smtp-Source: APXvYqxsF5JqxBk+8MYo2+273UXoPENQApuhvHIXJ5O0RFnsoA1DRkMJZc/22yQ6q3wRhSD0HdD6 X-Received: by 2002:a9d:560f:: with SMTP id e15mr2211759oti.301.1579185837242; Thu, 16 Jan 2020 06:43:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579185837; cv=none; d=google.com; s=arc-20160816; b=QFzcwCoucE5C7h+IJAsL9t/QTk4ghjjOhJV7YYz+SUbAEZuHLyhMC2suZe2TCQck03 lkCQGeO0jK3t+V8QK3eyWxvcvfn/bNRALBkHcWxgRl+O2Qt6YdYdb+v/cJc7S3vZlvYH ax9Qcw/Zyib7XYxCzuPoRJ8yDxze6FLV9CfMXRqG82LAnPHlQPV7cM/G8vrM4KmCgIrG njM5lePj1oSSgYMiApeXFKbrBAw3BrqEeTLEknrhkgMH+aFBgPmNjt5M53Lnw1ELYamO X5udXSHGVEkYC50H5rjD3O0/A6zWV8fv+E24C4A23MRcHQmK7/wPrT3nfGlKRk5nVqm0 lb5A== 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=CXr3GrbWvOph9Y8HeGsYAdfWBQr4CaRWt2qdsDKZRyE=; b=AC9z3BR53HUfdhnLLbRRwNzes5WE1HTSKhjfGDXAkdtDQmBK9SSiq0XOiFchet/JXp WHB2ZbRpMiU4FYghDLQ7r9BGK7OK0EbnlcwPoCE3HjGWGEA8AS8wZrFgGspIrfTksGFo ZOBRJAILtTTT4DU+sXSDSCnd6pGkfab5hk9rJFTgZPwLUTe4/QGBTPEJOQQ72AmCUJoC k9uVF3qP5F57GKrrfDw1ojRPoQvQyn8jlWVMsOuI3EUkq4Tludp89Mgo/ROleFPPhQJe mQcnwzqb0B88ZnGWfQAW3qc2E1i2ViYxasYOO8Rf2xQGvFDdUR/yJCkpMRZ+Vgv5jfCn WCsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=kykSK39w; 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 t28si13049286otr.16.2020.01.16.06.43.45; Thu, 16 Jan 2020 06:43:57 -0800 (PST) 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=kykSK39w; 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 S1726812AbgAPOmo (ORCPT + 99 others); Thu, 16 Jan 2020 09:42:44 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:34828 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726566AbgAPOmn (ORCPT ); Thu, 16 Jan 2020 09:42:43 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200116144242euoutp01ec7beaa353b3a73196c0b81b63ca510d~qZRV7tqxo0131101311euoutp01I for ; Thu, 16 Jan 2020 14:42:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200116144242euoutp01ec7beaa353b3a73196c0b81b63ca510d~qZRV7tqxo0131101311euoutp01I DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1579185762; bh=CXr3GrbWvOph9Y8HeGsYAdfWBQr4CaRWt2qdsDKZRyE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kykSK39wDCXtzSpJpUgzg1i+mkumA4/eDfKje60DOH6eWVAg0A0qSpbnLF3RRoXWd s/Qu8AeNzD5AgHSUwg9db2hnjy5kCCvB9EG4NPVlthdtGxfkfAdolgJcYQmm+NmqGA jYErHK2ljdb+6hWMMj2qMnFg7Cb0QNgplzwIoAJ8= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200116144242eucas1p1d3567a2def247298ca22477d7914468a~qZRVtb-Q41363913639eucas1p1T; Thu, 16 Jan 2020 14:42:42 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id F6.F2.60679.166702E5; Thu, 16 Jan 2020 14:42:41 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200116144241eucas1p18dcf099873015e955d71d90712bbe9e0~qZRVZ6AHk0497304973eucas1p1G; Thu, 16 Jan 2020 14:42:41 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200116144241eusmtrp137959cff65a2af54c977c33027387ca1~qZRVZIe-m0584505845eusmtrp1U; Thu, 16 Jan 2020 14:42:41 +0000 (GMT) X-AuditID: cbfec7f4-0e5ff7000001ed07-40-5e207661c6d3 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id A9.E4.07950.166702E5; Thu, 16 Jan 2020 14:42:41 +0000 (GMT) Received: from AMDC3555.digital.local (unknown [106.120.51.67]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200116144241eusmtip2b3eb3262f81e594c643ca8124a5ed374~qZRU1_EwE2382523825eusmtip2Y; Thu, 16 Jan 2020 14:42:41 +0000 (GMT) From: =?UTF-8?q?Artur=20=C5=9Awigo=C5=84?= To: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: =?UTF-8?q?Artur=20=C5=9Awigo=C5=84?= , georgi.djakov@linaro.org, cw00.choi@samsung.com, b.zolnierkie@samsung.com, m.szyprowski@samsung.com, krzk@kernel.org Subject: [PATCH v4 1/3] interconnect: Export of_icc_get_from_provider() Date: Thu, 16 Jan 2020 15:42:00 +0100 Message-Id: <20200116144202.12116-2-a.swigon@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200116144202.12116-1-a.swigon@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrMKsWRmVeSWpSXmKPExsWy7djPc7qJZQpxBmd3WFvcn9fKaLFxxnpW i+tfnrNaTN+7ic3i/PkN7BaXd81hs/jce4TRYsb5fUwWa4/cZXfg9Ni0qpPN4861PWwefVtW MXp83iQXwBLFZZOSmpNZllqkb5fAlXFr0Rf2gq0CFauWHGZvYGzi62Lk5JAQMJHon9vO3MXI xSEksIJRovfmARYI5wujxPYNF6Ccz4wSL3vvssO0PNr4DiqxnFHiw/51jHAtd09NZAapYhNw lJg09QFYh4hAvMTHbf/AOpgFdjJKHPn7hwkkISzgLvHsDMRYFgFVif0fJrOA2LwClhI/T11k glgnL7F6wwGgoRwcnAJWEp8fq0KUCEqcnPkErJwZqKR562ywJyQE1rFLnNvTwwbR6yLx8uVV KFtY4tXxLVAvyEicntzDAmEXSzzdeZ8VormBUWLTsiPMEAlriTvnfrGBLGYW0JRYv0sfIuwo 8fTETbCwhACfxI23ghA38ElM2jadGSLMK9HRJgRhKknsmgkNagmJptXXoGZ7S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akFsH0MXFwSjUwutcavy241yqYpr/2WaTcpQYd9rwLwjd/ZW5337bDcd77 4yd3b0u/dXKqwQL9OXPOLha7ImvBwixsmnrANVV+ab2J6+v6gIbcgyqRCzsPzO54ZVv++mRM CMvHOn6X8LqC/tRZD1ek90k+eNxhtEMg5MqxwyyS649YJCWsvuLIUn74U7SupZqyEktxRqKh FnNRcSIAv2xK1bsCAAA= X-CMS-MailID: 20200116144241eucas1p18dcf099873015e955d71d90712bbe9e0 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200116144241eucas1p18dcf099873015e955d71d90712bbe9e0 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200116144241eucas1p18dcf099873015e955d71d90712bbe9e0 References: <20200116144202.12116-1-a.swigon@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ń Reviewed-by: Krzysztof Kozlowski Reviewed-by: Chanwoo Choi --- 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 f277e467156f..0be1764d3528 100644 --- a/drivers/interconnect/core.c +++ b/drivers/interconnect/core.c @@ -330,7 +330,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; @@ -349,6 +349,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 0c494534b4d3..cc965b8fab53 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; } +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