summaryrefslogtreecommitdiffstats
path: root/Documentation/thermal
diff options
context:
space:
mode:
authorRajendra Nayak <rnayak@codeaurora.org>2016-05-05 14:21:42 +0530
committerZhang Rui <rui.zhang@intel.com>2016-09-27 14:02:16 +0800
commit4a7069a32c99a81950de035535b0a064dcceaeba (patch)
treeb65912d14e0cd5650a7d1e0cdc5270176e2c6f90 /Documentation/thermal
parent5e6703bd2d83548998848865cb9a9a795f31a311 (diff)
downloadlinux-stable-4a7069a32c99a81950de035535b0a064dcceaeba.tar.gz
linux-stable-4a7069a32c99a81950de035535b0a064dcceaeba.tar.bz2
linux-stable-4a7069a32c99a81950de035535b0a064dcceaeba.zip
thermal: core: export apis to get slope and offset
Add apis for platform thermal drivers to query for slope and offset attributes, which might be needed for temperature calculations. Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org> Signed-off-by: Eduardo Valentin <edubezval@gmail.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'Documentation/thermal')
-rw-r--r--Documentation/thermal/sysfs-api.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Documentation/thermal/sysfs-api.txt b/Documentation/thermal/sysfs-api.txt
index efc3f3d293c4..755476ea3fda 100644
--- a/Documentation/thermal/sysfs-api.txt
+++ b/Documentation/thermal/sysfs-api.txt
@@ -140,6 +140,18 @@ temperature) and throttle appropriate devices.
Normally this function will not need to be called and the resource
management code will ensure that the resource is freed.
+1.1.7 int thermal_zone_get_slope(struct thermal_zone_device *tz)
+
+ This interface is used to read the slope attribute value
+ for the thermal zone device, which might be useful for platform
+ drivers for temperature calculations.
+
+1.1.8 int thermal_zone_get_offset(struct thermal_zone_device *tz)
+
+ This interface is used to read the offset attribute value
+ for the thermal zone device, which might be useful for platform
+ drivers for temperature calculations.
+
1.2 thermal cooling device interface
1.2.1 struct thermal_cooling_device *thermal_cooling_device_register(char *name,
void *devdata, struct thermal_cooling_device_ops *)