Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 63c4ec90 authored by Zhang Rui's avatar Zhang Rui Committed by Len Brown
Browse files

thermal: add the support for building the generic thermal as a module



Build the generic thermal driver as module "thermal_sys".

Make ACPI thermal, video, processor and fan SELECT the generic
thermal driver, as these drivers rely on it to build the sysfs I/F.

Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
Acked-by: default avatarJean Delvare <khali@linux-fr.org>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent a01e035e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -140,6 +140,7 @@ config ACPI_VIDEO
	tristate "Video"
	depends on X86 && BACKLIGHT_CLASS_DEVICE && VIDEO_OUTPUT_CONTROL
	depends on INPUT
	select THERMAL
	help
	  This driver implement the ACPI Extensions For Display Adapters
	  for integrated graphics devices on motherboard, as specified in
@@ -151,6 +152,7 @@ config ACPI_VIDEO

config ACPI_FAN
	tristate "Fan"
	select THERMAL
	default y
	help
	  This driver adds support for ACPI fan devices, allowing user-mode 
@@ -172,6 +174,7 @@ config ACPI_BAY

config ACPI_PROCESSOR
	tristate "Processor"
	select THERMAL
	default y
	help
	  This driver installs ACPI as the idle handler for Linux, and uses
+1 −0
Original line number Diff line number Diff line
@@ -344,6 +344,7 @@ config ATMEL_SSC
config INTEL_MENLOW
	tristate "Thermal Management driver for Intel menlow platform"
	depends on ACPI_THERMAL
	select THERMAL
	depends on X86
	---help---
	  ACPI thermal management enhancement driver on
+2 −2
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
#

menuconfig THERMAL
	bool "Generic Thermal sysfs driver"
	tristate "Generic Thermal sysfs driver"
	help
	  Generic Thermal Sysfs driver offers a generic mechanism for
	  thermal management. Usually it's made up of one or more thermal
@@ -11,4 +11,4 @@ menuconfig THERMAL
	  Each thermal zone contains its own temperature, trip points,
	  cooling devices.
	  All platforms with ACPI thermal support can use this driver.
	  If you want this support, you should say Y here.
	  If you want this support, you should say Y or M here.
+2 −1
Original line number Diff line number Diff line
@@ -2,4 +2,5 @@
# Makefile for sensor chip drivers.
#

obj-$(CONFIG_THERMAL)		+= thermal.o
thermal_sys-objs	+= thermal.o
obj-$(CONFIG_THERMAL)		+= thermal_sys.o
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@
#include <linux/thermal.h>
#include <linux/spinlock.h>

MODULE_AUTHOR("Zhang Rui")
MODULE_AUTHOR("Zhang Rui");
MODULE_DESCRIPTION("Generic thermal management sysfs support");
MODULE_LICENSE("GPL");

Loading