Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1892453ybg; Thu, 4 Jun 2020 23:47:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZ/QRpuq7g+1tTh2dFOUSflc8dmA6jo1u4Bx+cxGlfVCFvB32rRZK55g8kWwcSPNXIA46j X-Received: by 2002:aa7:d2d6:: with SMTP id k22mr7982259edr.109.1591339644511; Thu, 04 Jun 2020 23:47:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591339644; cv=none; d=google.com; s=arc-20160816; b=OptZAzKZCPYrYJhJs2udGPQvulYfTXcaGGSGEGLz0fiZ2YqraUUTKqEmodmfw2dw5E cAExwqdc+06UBi1+sX8b04lD0YAerbUbOIM0vkPj+TgcRpkP7yR69fCpIM9LK8ILzw6T AarC75hCOHG0SUeeJ2gFrACfcJjRdOu7LiTRal1N/0nBPM1DsFB7dby6FkLOFXo8Gd6M LAzz0dMlhLjOz36xav/BBMBp5wIHQFvfMos3B6/7cZ+fBSGmw4Kd2r+FBwLsIALULr5y XrNZfFfitBzDvtTpPCE3DxhI4Kdue2aoe9W3HwgoNIYQIXe1T2r1lJHsqLY7DYjD9wPZ kIBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=ZPpnJBQAcfIl9rL5NUO0X84ZGb6yV+KwTwV7hvoxr9U=; b=KTO2vqt3JW0RXe1ZWZlDSZpcLlWOuXpHbXRRLj3Aa95N7rIXTZFwTWfHseaGGMOipB RICpue2CoJQ2rpjpOA15xNojwi0Y/z7KuH87bg8ru8/CpPNJj90YZOi1U1OAfv4vnEc2 394yjnPB+kHULHJjJtjY4Ii1zY5Upc1Pt5afht4KFayMWBNtAl384blk5VM5QbDLA2Qp SsvWHI0hXvgR8TnWSv0BXoEXlG2cG7Nvh3wW92fpApisRhsE+i6reoPvUnu+gOvm9Ip+ Y/YiVjhKC//vwoMBr4JFvqhcLJlWm8DlUHXiD/LNpW0EtlruebFYIH48G3oloy/3S6Ok mU5g== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id fi11si2970844ejb.612.2020.06.04.23.47.01; Thu, 04 Jun 2020 23:47:24 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726195AbgFEGpM (ORCPT + 99 others); Fri, 5 Jun 2020 02:45:12 -0400 Received: from inva021.nxp.com ([92.121.34.21]:56918 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725986AbgFEGpL (ORCPT ); Fri, 5 Jun 2020 02:45:11 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 6AC8F2014A4; Fri, 5 Jun 2020 08:45:10 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id E92692002BD; Fri, 5 Jun 2020 08:45:05 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id C9704402AD; Fri, 5 Jun 2020 14:44:59 +0800 (SGT) From: Anson Huang To: aisheng.dong@nxp.com, festevam@gmail.com, shawnguo@kernel.org, stefan@agner.ch, kernel@pengutronix.de, linus.walleij@linaro.org, s.hauer@pengutronix.de, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Linux-imx@nxp.com Subject: [PATCH 1/8] pinctrl: imx: Export necessary APIs for i.MX pinctrl drivers Date: Fri, 5 Jun 2020 14:34:27 +0800 Message-Id: <1591338874-4733-2-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1591338874-4733-1-git-send-email-Anson.Huang@nxp.com> References: <1591338874-4733-1-git-send-email-Anson.Huang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Export imx_pinctrl_probe()/imx_pinctrl_pm_ops/imx_pinctrl_sc_ipc_init() to support i.MX SoCs' pinctrl driver to be built as module. Signed-off-by: Anson Huang --- drivers/pinctrl/freescale/pinctrl-imx.c | 2 ++ drivers/pinctrl/freescale/pinctrl-scu.c | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/pinctrl/freescale/pinctrl-imx.c b/drivers/pinctrl/freescale/pinctrl-imx.c index cb7e0f0..f18f0d7 100644 --- a/drivers/pinctrl/freescale/pinctrl-imx.c +++ b/drivers/pinctrl/freescale/pinctrl-imx.c @@ -878,6 +878,7 @@ int imx_pinctrl_probe(struct platform_device *pdev, return pinctrl_enable(ipctl->pctl); } +EXPORT_SYMBOL_GPL(imx_pinctrl_probe); static int __maybe_unused imx_pinctrl_suspend(struct device *dev) { @@ -897,3 +898,4 @@ const struct dev_pm_ops imx_pinctrl_pm_ops = { SET_LATE_SYSTEM_SLEEP_PM_OPS(imx_pinctrl_suspend, imx_pinctrl_resume) }; +EXPORT_SYMBOL_GPL(imx_pinctrl_pm_ops); diff --git a/drivers/pinctrl/freescale/pinctrl-scu.c b/drivers/pinctrl/freescale/pinctrl-scu.c index 23cf04b..200e875 100644 --- a/drivers/pinctrl/freescale/pinctrl-scu.c +++ b/drivers/pinctrl/freescale/pinctrl-scu.c @@ -41,6 +41,7 @@ int imx_pinctrl_sc_ipc_init(struct platform_device *pdev) { return imx_scu_get_handle(&pinctrl_ipc_handle); } +EXPORT_SYMBOL_GPL(imx_pinctrl_sc_ipc_init); int imx_pinconf_get_scu(struct pinctrl_dev *pctldev, unsigned pin_id, unsigned long *config) -- 2.7.4