]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/thermal/of-thermal.c
thermal: of: Enable thermal_zoneX when sensor is correctly added
authorLukasz Majewski <l.majewski@samsung.com>
Mon, 19 Jan 2015 11:44:04 +0000 (12:44 +0100)
committerEduardo Valentin <edubezval@gmail.com>
Wed, 21 Jan 2015 05:09:52 +0000 (01:09 -0400)
commit528012c1f4379738c6307b273d20cc3caa7d08af
tree934e1772dba8f022374e3c9bd2a2b0ae148bcd64
parentb97f880c8342fd6e49a02c9ef7507a678722b2b3
thermal: of: Enable thermal_zoneX when sensor is correctly added

Up till now the thermal_zone mode was by default "disabled". With this
patch the default behavior was changed to "enable".

One can read the mode at:
/sys/class/thermal/thermal_zone0/mode

Tested-by: Javi Merino <javi.merino@arm.com>
Reported-by: Abhilash Kesavan <a.kesavan@samsung.com>
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/of-thermal.c