aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorDurgadoss R <dugardoss.r@intel.com>2012-07-24 22:10:58 -0400
committerLen Brown <len.brown@intel.com>2012-07-24 23:17:20 -0400
commitc56f5c0342dfee11a1a13d2f5bb7618de5b17590 (patch)
tree4f5bae9424271e41d10d0c9d9fc17be6f63fba63 /Documentation
parent28a33cbc24e4256c143dce96c7d93bf423229f92 (diff)
Thermal: Make Thermal trip points writeable
Some of the thermal drivers using the Generic Thermal Framework require (all/some) trip points to be writeable. This patch makes the trip point temperatures writeable on a per-trip point basis, and modifies the required function call in thermal.c. This patch also updates the Documentation to reflect the new change. Signed-off-by: Durgadoss R <durgadoss.r@intel.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/thermal/sysfs-api.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/thermal/sysfs-api.txt b/Documentation/thermal/sysfs-api.txt
index 1733ab947a95..4c105934c599 100644
--- a/Documentation/thermal/sysfs-api.txt
+++ b/Documentation/thermal/sysfs-api.txt
@@ -32,7 +32,8 @@ temperature) and throttle appropriate devices.
32 32
331.1 thermal zone device interface 331.1 thermal zone device interface
341.1.1 struct thermal_zone_device *thermal_zone_device_register(char *name, 341.1.1 struct thermal_zone_device *thermal_zone_device_register(char *name,
35 int trips, void *devdata, struct thermal_zone_device_ops *ops) 35 int trips, int mask, void *devdata,
36 struct thermal_zone_device_ops *ops)
36 37
37 This interface function adds a new thermal zone device (sensor) to 38 This interface function adds a new thermal zone device (sensor) to
38 /sys/class/thermal folder as thermal_zone[0-*]. It tries to bind all the 39 /sys/class/thermal folder as thermal_zone[0-*]. It tries to bind all the
@@ -40,6 +41,7 @@ temperature) and throttle appropriate devices.
40 41
41 name: the thermal zone name. 42 name: the thermal zone name.
42 trips: the total number of trip points this thermal zone supports. 43 trips: the total number of trip points this thermal zone supports.
44 mask: Bit string: If 'n'th bit is set, then trip point 'n' is writeable.
43 devdata: device private data 45 devdata: device private data
44 ops: thermal zone device call-backs. 46 ops: thermal zone device call-backs.
45 .bind: bind the thermal zone device with a thermal cooling device. 47 .bind: bind the thermal zone device with a thermal cooling device.