Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp323234ybt; Tue, 23 Jun 2020 23:36:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4p3Fcde8Fs4qVLPj9DAx2fFTPUGXo5mr/3dPczRi2ZK3ChYvJ95BBT7x0fWZGTuHQokpT X-Received: by 2002:a50:e8c8:: with SMTP id l8mr19664165edn.386.1592980598468; Tue, 23 Jun 2020 23:36:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592980598; cv=none; d=google.com; s=arc-20160816; b=rWuaUUJ+5BG3EHy9cekjNTaLxNaCy4tZX0ivovymumse6Z3YSE3929+tzLIa6ZMgyQ 4oR2lFj29ZwtP35arLXvN2Z8+LQgq7yJmN72m9sOfg9Lnu2Hfoaj6iQfZuY8KUDal1DV LB0xtX3qbocWjarpSFvX9ntC5KVrwclWkwLXfe9vqmO7qrK99Fw9DYTQuVmVt3q4/rbk EKlmvEi9g3w/kGsZhtZGcTN4MIHxnqPL23UmKo8vmkpG1iEDsLjxtxlRxdc7csj8UlLh eeBFnUqbygSO85Lrbi4aLhhHs+/SFKBU+vSvJKinsSR1yD3vF5rUlQpjwDqMKADE52aI z1rQ== 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=A8lSKhvP0Z44JTtx4Stk9JJnelPYf6x3g6BJ29LpTj8=; b=EfRQKJ3i4/tWph+1mcCprVmfmaSWVgmHV6VjJyjJ4uIDhIr6ayu6FmzuGQvSk8zNWJ BbDX+OICIi0sl77DvbEQQC1BiJyrBduh1H7tBrjFjEyLze4yJhMShTKhILoWgpgrCg9X XaQLSc2m7j88F+UNQDEYcL7LorVI4vqjrs/8XSGaDeBki5Xo7uqywAVzmQXmGkwLc6I4 iT1yMgc0g8ffI8FcbTWeYqKWbkLorkwfygvoN2r51Z8o6qySzrPmBUpAwHhHmQF0KEeA qleyzKhPL83j0l5Ba78IuIc46pjkFVzYuzLFJ4zQyQH7fxFPQahfo0fOxn9pZLmuE69A Mp6w== 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 gh22si12419744ejb.481.2020.06.23.23.36.15; Tue, 23 Jun 2020 23:36:38 -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 S2389204AbgFXGfj (ORCPT + 99 others); Wed, 24 Jun 2020 02:35:39 -0400 Received: from inva021.nxp.com ([92.121.34.21]:47366 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388262AbgFXGfh (ORCPT ); Wed, 24 Jun 2020 02:35:37 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 4392C200F31; Wed, 24 Jun 2020 08:35:35 +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 B3F0A200179; Wed, 24 Jun 2020 08:35:30 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id CAB7E402CA; Wed, 24 Jun 2020 14:35:24 +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 V6 2/9] pinctrl: imx: scu: Support i.MX8 SCU SoCs pinctrl driver built as module Date: Wed, 24 Jun 2020 14:23:57 +0800 Message-Id: <1592979844-18833-3-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1592979844-18833-1-git-send-email-Anson.Huang@nxp.com> References: <1592979844-18833-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 necessary APIs to support i.MX8 SCU SoCs pinctrl driver to be built as module. Signed-off-by: Anson Huang --- Changes since V5: - keep it still built in, ONLY export APIs for SoCs pinctrl driver; --- drivers/pinctrl/freescale/pinctrl-scu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/pinctrl/freescale/pinctrl-scu.c b/drivers/pinctrl/freescale/pinctrl-scu.c index 23cf04b..9df45d3 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) @@ -66,6 +67,7 @@ int imx_pinconf_get_scu(struct pinctrl_dev *pctldev, unsigned pin_id, return 0; } +EXPORT_SYMBOL_GPL(imx_pinconf_get_scu); int imx_pinconf_set_scu(struct pinctrl_dev *pctldev, unsigned pin_id, unsigned long *configs, unsigned num_configs) @@ -101,6 +103,7 @@ int imx_pinconf_set_scu(struct pinctrl_dev *pctldev, unsigned pin_id, return ret; } +EXPORT_SYMBOL_GPL(imx_pinconf_set_scu); void imx_pinctrl_parse_pin_scu(struct imx_pinctrl *ipctl, unsigned int *pin_id, struct imx_pin *pin, @@ -119,3 +122,4 @@ void imx_pinctrl_parse_pin_scu(struct imx_pinctrl *ipctl, dev_dbg(ipctl->dev, "%s: 0x%x 0x%08lx", info->pins[pin->pin].name, pin_scu->mux_mode, pin_scu->config); } +EXPORT_SYMBOL_GPL(imx_pinctrl_parse_pin_scu); -- 2.7.4