thermal: core: Add Kconfig option to enable writable trips
authorPunit Agrawal <punit.agrawal@arm.com>
Tue, 3 Mar 2015 10:43:03 +0000 (10:43 +0000)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 5 May 2015 04:27:53 +0000 (21:27 -0700)
commit35e946447f22d722e06702f4f040f7b108cafbbe
tree7bc81f7ac621f8af0d3e4dcd200cf2e139af4b2b
parent4abe602d5d2c7a64bde935acae4b15e49c8b3238
thermal: core: Add Kconfig option to enable writable trips

Add a Kconfig option to allow system integrators to control whether
userspace tools can change trip temperatures. This option overrides
the thermal zone setup in the driver code and must be enabled for
platform specified writable trips to come into effect.

The original behaviour of requiring root privileges to change trip
temperatures remains unchanged.

Cc: Eduardo Valentin <edubezval@gmail.com>
Cc: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/Kconfig
drivers/thermal/thermal_core.c