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

Commit c48cbba6 authored by Amit Daniel Kachhap's avatar Amit Daniel Kachhap Committed by Zhang Rui
Browse files

hwmon: exynos4: move thermal sensor driver to driver/thermal directory



This movement is needed because the hwmon entries and corresponding sysfs
interface is a duplicate of utilities already provided by
driver/thermal/thermal_sys.c.  The goal is to place it in thermal folder
and add necessary functions to use the in-kernel thermal interfaces.

Signed-off-by: default avatarAmit Daniel Kachhap <amit.kachhap@linaro.org>
Acked-by: default avatarGuenter Roeck <guenter.roeck@ericsson.com>
Cc: SangWook Ju <sw.ju@samsung.com>
Cc: Durgadoss <durgadoss.r@intel.com>
Cc: Len Brown <lenb@kernel.org>
Cc: Jean Delvare <khali@linux-fr.org>
Cc: Kyungmin Park <kmpark@infradead.org>
Cc: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarAmit Daniel Kachhap <amit.daniel@samsung.com>
Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
parent 02361418
Loading
Loading
Loading
Loading
+3 −32
Original line number Diff line number Diff line
@@ -46,36 +46,7 @@ The threshold levels are defined as follows:
  The threshold and each trigger_level are set
  through the corresponding registers.

When an interrupt occurs, this driver notify user space of
one of four threshold levels for the interrupt
through kobject_uevent_env and sysfs_notify functions.
When an interrupt occurs, this driver notify kernel thermal framework
with the function exynos4_report_trigger.
Although an interrupt condition for level_0 can be set,
it is not notified to user space through sysfs_notify function.

Sysfs Interface
---------------
name		name of the temperature sensor
		RO

temp1_input	temperature
		RO

temp1_max	temperature for level_1 interrupt
		RO

temp1_crit	temperature for level_2 interrupt
		RO

temp1_emergency	temperature for level_3 interrupt
		RO

temp1_max_alarm	alarm for level_1 interrupt
		RO

temp1_crit_alarm
		alarm for level_2 interrupt
		RO

temp1_emergency_alarm
		alarm for level_3 interrupt
		RO
it can be used to synchronize the cooling action.
+0 −10
Original line number Diff line number Diff line
@@ -324,16 +324,6 @@ config SENSORS_DA9052_ADC
	  This driver can also be built as module. If so, the module
	  will be called da9052-hwmon.

config SENSORS_EXYNOS4_TMU
	tristate "Temperature sensor on Samsung EXYNOS4"
	depends on ARCH_EXYNOS4
	help
	  If you say yes here you get support for TMU (Thermal Management
	  Unit) on SAMSUNG EXYNOS4 series of SoC.

	  This driver can also be built as a module. If so, the module
	  will be called exynos4-tmu.

config SENSORS_I5K_AMB
	tristate "FB-DIMM AMB temperature sensor on Intel 5000 series chipsets"
	depends on PCI && EXPERIMENTAL
+0 −1
Original line number Diff line number Diff line
@@ -49,7 +49,6 @@ obj-$(CONFIG_SENSORS_DS1621) += ds1621.o
obj-$(CONFIG_SENSORS_EMC1403)	+= emc1403.o
obj-$(CONFIG_SENSORS_EMC2103)	+= emc2103.o
obj-$(CONFIG_SENSORS_EMC6W201)	+= emc6w201.o
obj-$(CONFIG_SENSORS_EXYNOS4_TMU)	+= exynos4_tmu.o
obj-$(CONFIG_SENSORS_F71805F)	+= f71805f.o
obj-$(CONFIG_SENSORS_F71882FG)	+= f71882fg.o
obj-$(CONFIG_SENSORS_F75375S)	+= f75375s.o
+7 −0
Original line number Diff line number Diff line
@@ -46,3 +46,10 @@ config RCAR_THERMAL
	help
	  Enable this to plug the R-Car thermal sensor driver into the Linux
	  thermal framework

config EXYNOS_THERMAL
	tristate "Temperature sensor on Samsung EXYNOS"
	depends on ARCH_EXYNOS4 && THERMAL
	help
	  If you say yes here you get support for TMU (Thermal Managment
	  Unit) on SAMSUNG EXYNOS series of SoC.
+1 −0
Original line number Diff line number Diff line
@@ -6,3 +6,4 @@ obj-$(CONFIG_THERMAL) += thermal_sys.o
obj-$(CONFIG_CPU_THERMAL)		+= cpu_cooling.o
obj-$(CONFIG_SPEAR_THERMAL)		+= spear_thermal.o
obj-$(CONFIG_RCAR_THERMAL)	+= rcar_thermal.o
obj-$(CONFIG_EXYNOS_THERMAL)		+= exynos_thermal.o
Loading