aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2019-04-02 12:12:48 -0400
committerZhang Rui <rui.zhang@intel.com>2019-05-06 08:35:24 -0400
commite9cf125bc1f99caacd1f4700b2c78659c53c4d9d (patch)
treef9e261024b22ca92017664e29e59b46b50a0e0d8
parent77e1dd46a1ad098f2bdb1fc953fea0d59e5d7fb6 (diff)
thermal/drivers/core: Remove depends on THERMAL in Kconfig
The dependency on the THERMAL option to be set is already there implicitly by the "if THERMAL" conditionnal option. The sub Kconfigs do not have to check against the THERMAL option as they are called from a Kconfig block which is enabled by the conditionnal option. Remove the useless "depends on THERMAL" in the Kconfigs. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
-rw-r--r--drivers/thermal/Kconfig2
-rw-r--r--drivers/thermal/intel/Kconfig1
-rw-r--r--drivers/thermal/qcom/Kconfig1
3 files changed, 0 insertions, 4 deletions
diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig
index ccf5b9408d7a..d8aa7fac8c56 100644
--- a/drivers/thermal/Kconfig
+++ b/drivers/thermal/Kconfig
@@ -24,7 +24,6 @@ config THERMAL_STATISTICS
24 24
25config THERMAL_EMERGENCY_POWEROFF_DELAY_MS 25config THERMAL_EMERGENCY_POWEROFF_DELAY_MS
26 int "Emergency poweroff delay in milli-seconds" 26 int "Emergency poweroff delay in milli-seconds"
27 depends on THERMAL
28 default 0 27 default 0
29 help 28 help
30 Thermal subsystem will issue a graceful shutdown when 29 Thermal subsystem will issue a graceful shutdown when
@@ -152,7 +151,6 @@ config CPU_THERMAL
152 bool "generic cpu cooling support" 151 bool "generic cpu cooling support"
153 depends on CPU_FREQ 152 depends on CPU_FREQ
154 depends on THERMAL_OF 153 depends on THERMAL_OF
155 depends on THERMAL=y
156 help 154 help
157 This implements the generic cpu cooling mechanism through frequency 155 This implements the generic cpu cooling mechanism through frequency
158 reduction. An ACPI version of this already exists 156 reduction. An ACPI version of this already exists
diff --git a/drivers/thermal/intel/Kconfig b/drivers/thermal/intel/Kconfig
index 2e013eeb4a1d..2c727a820759 100644
--- a/drivers/thermal/intel/Kconfig
+++ b/drivers/thermal/intel/Kconfig
@@ -1,6 +1,5 @@
1config INTEL_POWERCLAMP 1config INTEL_POWERCLAMP
2 tristate "Intel PowerClamp idle injection driver" 2 tristate "Intel PowerClamp idle injection driver"
3 depends on THERMAL
4 depends on X86 3 depends on X86
5 depends on CPU_SUP_INTEL 4 depends on CPU_SUP_INTEL
6 help 5 help
diff --git a/drivers/thermal/qcom/Kconfig b/drivers/thermal/qcom/Kconfig
index cdb455ffd575..3ce20fec86a2 100644
--- a/drivers/thermal/qcom/Kconfig
+++ b/drivers/thermal/qcom/Kconfig
@@ -1,6 +1,5 @@
1config QCOM_TSENS 1config QCOM_TSENS
2 tristate "Qualcomm TSENS Temperature Alarm" 2 tristate "Qualcomm TSENS Temperature Alarm"
3 depends on THERMAL
4 depends on QCOM_QFPROM 3 depends on QCOM_QFPROM
5 depends on ARCH_QCOM || COMPILE_TEST 4 depends on ARCH_QCOM || COMPILE_TEST
6 help 5 help