Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp642599ybf; Wed, 26 Feb 2020 20:14:20 -0800 (PST) X-Google-Smtp-Source: APXvYqxFs6iO6yZeeKv9P7T4rGa5x//SZZDDPmymPVbtfldv8KjXelqg4Ut279jGO91MzsTz99ok X-Received: by 2002:a9d:6c58:: with SMTP id g24mr1852538otq.229.1582776860054; Wed, 26 Feb 2020 20:14:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582776860; cv=none; d=google.com; s=arc-20160816; b=UslEgHRubk7VyQWglk+jI5AmAg6vdqS35zp6Cc8i8mVQjCt/+2zTvzjd7vuTluXhyW 9hEiCJ6wCptwsPv0PpBVvUEyBugNPNSX3zflfErORsELmicD+oANDM4hBlH/T1SGiIAz gewH8gY/qNDS7pbf0IIpzhygeAwucdS6UTB1v4+5lRmFHnIiDAajYzVEa3a1Y72ZA/5k mRj9GIEN59Ijl/+oi5k0mz1JW6oYeOGhE4Y6XZ2a8ZZneJXdbSEEzqGuYHTck4Ja9Msf mr5QYx501jaW3NvJsnyeqSiDHB6ny4PPUe88Up0wzKXK9K0NX8cOHexaKE43RgMP1wC3 e1Xg== 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:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=LsMXCWACkUWIrwvKhNNStRrc79JfYRemXqBazXS0Xzo=; b=Ljbe0RzcwKoBwZW0a1KEia0ZuEY3bXvRVdac7of9Mbdl4qx79DpBqSSnOL1ZV11zL/ yN7qiYcpveuRpMcFmY1613TTQNDTFMsjfB01js0oUxRuzJU2zdf5AhSuAdvb6w1IqHAm 196ygNCbWCCIKrh+KDirwOquknT9puYZtz2PRvQwW+qGnG264acJ/xKM5KQ5W3YTzBBb L7wzFmjUV8DImNvsWN8vSzNcmbuNb4lFJw4HnfXJQ28CNiw9QBclhO/Hjg143RMMtQft rVD46uykVvxJ7Mbjyk+8cXg+y47tZpssRaPo0LIthlama6fhZRcasFnzELoxDxp1gnI+ Eqqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=daLjtbmv; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q25si963930otg.128.2020.02.26.20.14.08; Wed, 26 Feb 2020 20:14:20 -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=@gmail.com header.s=20161025 header.b=daLjtbmv; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728355AbgB0EOB (ORCPT + 99 others); Wed, 26 Feb 2020 23:14:01 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:38593 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727735AbgB0EOB (ORCPT ); Wed, 26 Feb 2020 23:14:01 -0500 Received: by mail-pl1-f195.google.com with SMTP id p7so588345pli.5; Wed, 26 Feb 2020 20:14:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=LsMXCWACkUWIrwvKhNNStRrc79JfYRemXqBazXS0Xzo=; b=daLjtbmv6Hc8AWRsib89to0NgXTXkBdXPUKjD57eppxXLiWjpJjnp13uhv08bTsgmU UuQqjCS2NlpMA9RNPjLuCo1JXbkb3R3VsH8XjxKPl+MQw7yT6cvpO/sgoguvSGvG8JFn 8af7H44RlD6aKI2nioN04GXnQJfZNM2wHbq5Px2cOl/OZrOmHZwk4P/TdXbmZuqP99T0 uuI6KE4eFrj7qpfAHWLkw/QF3mwvWDHPYJ0F4imCsaTvz8dgWy++IujHldQ8hzp8Br9/ p9fVbR3o6+pIqhsGY00TxduX0SLqysytDDgswAxB5jMstoPeIhqyHfE/sQk2dPc7ZuIL hJcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=LsMXCWACkUWIrwvKhNNStRrc79JfYRemXqBazXS0Xzo=; b=cU0xaFdEHS7z0YFVPIokxNHPFAlYFOQXAE4mbv2cIqXDsYWAkb4yA7BnF00hTHkc9Z 6/Mhi967lCjhAMOSY/Gt8Hy1PapXS7NE7OU+DiD6mC3x7+FvEXznLVu63wAPDqFWR4hX qkk/mBJDtxsEoI/NYLzz2TdZiPJXbWSGjg5946kpDGS6VqPTuwJF9KrnMYHHVJEJRD9e WtR5RTJlc52UJGS4ofmcdo+TjpflBBCFou3q5R5ZUwC+zy2q3y+AKiMW058ao05mqjgK b89mYkAepoakLhEU+qh6rIOyz7DDWg5VQfN8pjYo5J4j9Zp58y8B9pd774o8SvZU96cf UJSw== X-Gm-Message-State: APjAAAWkuuaVhvgfM+t6hZ3TVpEzcmjBKa1IlY7vRTFjPLU9lSrucANx mFO3Jni947Zs3ZLM0R9/aG8= X-Received: by 2002:a17:90b:11d0:: with SMTP id gv16mr2728133pjb.109.1582776840072; Wed, 26 Feb 2020 20:14:00 -0800 (PST) Received: from sh03840pcu.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id c1sm4729856pfa.51.2020.02.26.20.13.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Feb 2020 20:13:59 -0800 (PST) From: Baolin Wang To: linus.walleij@linaro.org Cc: orsonzhai@gmail.com, zhang.lyra@gmail.com, baolin.wang7@gmail.com, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] pinctrl: sprd: Allow the SPRD pinctrl driver building into a module Date: Thu, 27 Feb 2020 12:13:47 +0800 Message-Id: X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Change the config to 'tristate' and export some symbols needed by modules to allow the Spreadtrum pinctrl driver building into a module. Signed-off-by: Baolin Wang --- drivers/pinctrl/sprd/Kconfig | 6 +++--- drivers/pinctrl/sprd/pinctrl-sprd.c | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/pinctrl/sprd/Kconfig b/drivers/pinctrl/sprd/Kconfig index b6c5479..c9e7f0b 100644 --- a/drivers/pinctrl/sprd/Kconfig +++ b/drivers/pinctrl/sprd/Kconfig @@ -4,7 +4,7 @@ # config PINCTRL_SPRD - bool "Spreadtrum pinctrl driver" + tristate "Spreadtrum pinctrl driver" depends on OF depends on ARCH_SPRD || COMPILE_TEST select PINMUX @@ -15,7 +15,7 @@ config PINCTRL_SPRD Say Y here to enable Spreadtrum pinctrl driver config PINCTRL_SPRD_SC9860 - bool "Spreadtrum SC9860 pinctrl driver" - depends on PINCTRL_SPRD + tristate "Spreadtrum SC9860 pinctrl driver" + select PINCTRL_SPRD help Say Y here to enable Spreadtrum SC9860 pinctrl driver diff --git a/drivers/pinctrl/sprd/pinctrl-sprd.c b/drivers/pinctrl/sprd/pinctrl-sprd.c index 157712ab..ea04bac 100644 --- a/drivers/pinctrl/sprd/pinctrl-sprd.c +++ b/drivers/pinctrl/sprd/pinctrl-sprd.c @@ -1090,6 +1090,7 @@ int sprd_pinctrl_core_probe(struct platform_device *pdev, return 0; } +EXPORT_SYMBOL_GPL(sprd_pinctrl_core_probe); int sprd_pinctrl_remove(struct platform_device *pdev) { @@ -1098,6 +1099,7 @@ int sprd_pinctrl_remove(struct platform_device *pdev) pinctrl_unregister(sprd_pctl->pctl); return 0; } +EXPORT_SYMBOL_GPL(sprd_pinctrl_remove); void sprd_pinctrl_shutdown(struct platform_device *pdev) { @@ -1112,6 +1114,7 @@ void sprd_pinctrl_shutdown(struct platform_device *pdev) return; pinctrl_select_state(pinctl, state); } +EXPORT_SYMBOL_GPL(sprd_pinctrl_shutdown); MODULE_DESCRIPTION("SPREADTRUM Pin Controller Driver"); MODULE_AUTHOR("Baolin Wang "); -- 1.9.1