From 5edcc7517c2a97a1bf87fbe00aab8321c760f11a Mon Sep 17 00:00:00 2001 From: John Stultz Date: Thu, 16 Apr 2020 05:37:43 +0000 Subject: [PATCH] ANDROID: pinctrl: qcom: Allow pinctrl-msm code to be loadable as a module Tweaks to allow pinctrl-msm code to be loadable as a module. This is needed in order to support having the qcom-scm driver, which pinctrl-msm calls into, configured as a module. Signed-off-by: John Stultz Bug: 153049053 Bug: 158125476 Signed-off-by: Prasad Sodagudi Signed-off-by: John Stultz Change-Id: Ie5dac6955af029f0d57ad0bbcad2e235f8d5a52c --- drivers/pinctrl/qcom/Kconfig | 8 +++++++- drivers/pinctrl/qcom/pinctrl-msm.c | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/qcom/Kconfig b/drivers/pinctrl/qcom/Kconfig index 32fc2458b8eb..2377a718d80d 100644 --- a/drivers/pinctrl/qcom/Kconfig +++ b/drivers/pinctrl/qcom/Kconfig @@ -2,11 +2,17 @@ if (ARCH_QCOM || COMPILE_TEST) config PINCTRL_MSM - bool + tristate "Qualcomm generic pin controller driver" select PINMUX select PINCONF select GENERIC_PINCONF select GPIOLIB_IRQCHIP + help + This is Qualcomm Technologies, Inc msm platform TLMM + generic driver. This provides interfaces to chipset specific + clients drivers use the TLMM block. + Say yes here to enable Qualcomm TLMM driver. + config PINCTRL_APQ8064 tristate "Qualcomm APQ8064 pin controller driver" diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c index 4e0bbfcc7f13..2a12c3a45978 100644 --- a/drivers/pinctrl/qcom/pinctrl-msm.c +++ b/drivers/pinctrl/qcom/pinctrl-msm.c @@ -1319,3 +1319,5 @@ int msm_pinctrl_remove(struct platform_device *pdev) } EXPORT_SYMBOL(msm_pinctrl_remove); +MODULE_DESCRIPTION("Qualcomm Technologies, Inc. pinctrl-msm driver"); +MODULE_LICENSE("GPL v2");