Skip to content

Commit

Permalink
thermal/drivers/core: Remove depends on THERMAL in Kconfig
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Zhang Rui <[email protected]>
  • Loading branch information
dlezcano authored and zhang-rui committed May 6, 2019
1 parent 77e1dd4 commit e9cf125
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions drivers/thermal/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ config THERMAL_STATISTICS

config THERMAL_EMERGENCY_POWEROFF_DELAY_MS
int "Emergency poweroff delay in milli-seconds"
depends on THERMAL
default 0
help
Thermal subsystem will issue a graceful shutdown when
Expand Down Expand Up @@ -152,7 +151,6 @@ config CPU_THERMAL
bool "generic cpu cooling support"
depends on CPU_FREQ
depends on THERMAL_OF
depends on THERMAL=y
help
This implements the generic cpu cooling mechanism through frequency
reduction. An ACPI version of this already exists
Expand Down
1 change: 0 additions & 1 deletion drivers/thermal/intel/Kconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
config INTEL_POWERCLAMP
tristate "Intel PowerClamp idle injection driver"
depends on THERMAL
depends on X86
depends on CPU_SUP_INTEL
help
Expand Down
1 change: 0 additions & 1 deletion drivers/thermal/qcom/Kconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
config QCOM_TSENS
tristate "Qualcomm TSENS Temperature Alarm"
depends on THERMAL
depends on QCOM_QFPROM
depends on ARCH_QCOM || COMPILE_TEST
help
Expand Down

0 comments on commit e9cf125

Please sign in to comment.