aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEduardo Valentin2013-04-23 09:48:11 -0500
committerJ Keerthy2013-05-28 00:41:47 -0500
commitdd6b0c4ede3f5f65254da25d062ac6918cd6bf66 (patch)
treeda7d407b8a2600520cfd37851f95aecd3ffea66d /include
parent05de7c0d26f50823c615fb38bcaad1dc84bf1bcd (diff)
downloadkernel-audio-dd6b0c4ede3f5f65254da25d062ac6918cd6bf66.tar.gz
kernel-audio-dd6b0c4ede3f5f65254da25d062ac6918cd6bf66.tar.xz
kernel-audio-dd6b0c4ede3f5f65254da25d062ac6918cd6bf66.zip
thermal: expose thermal_zone_get_temp API
This patch exports the thermal_zone_get_temp API so that driver writers can fetch temperature of thermal zones managed by other drivers. Acked-by: Zhang Rui <rui.zhang@intel.com> Acked-by: Durgadoss R <durgadoss.r@intel.com> Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/thermal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/thermal.h b/include/linux/thermal.h
index 32c3458a331c..7375bd51a72c 100644
--- a/include/linux/thermal.h
+++ b/include/linux/thermal.h
@@ -238,6 +238,7 @@ struct thermal_cooling_device *thermal_cooling_device_register(char *, void *,
238 const struct thermal_cooling_device_ops *); 238 const struct thermal_cooling_device_ops *);
239void thermal_cooling_device_unregister(struct thermal_cooling_device *); 239void thermal_cooling_device_unregister(struct thermal_cooling_device *);
240struct thermal_zone_device *thermal_zone_get_zone_by_name(const char *name); 240struct thermal_zone_device *thermal_zone_get_zone_by_name(const char *name);
241int thermal_zone_get_temp(struct thermal_zone_device *tz, unsigned long *temp);
241 242
242int get_tz_trend(struct thermal_zone_device *, int); 243int get_tz_trend(struct thermal_zone_device *, int);
243struct thermal_instance *get_thermal_instance(struct thermal_zone_device *, 244struct thermal_instance *get_thermal_instance(struct thermal_zone_device *,