diff options
author | Eduardo Valentin | 2013-04-23 09:48:11 -0500 |
---|---|---|
committer | J Keerthy | 2013-05-28 00:41:47 -0500 |
commit | dd6b0c4ede3f5f65254da25d062ac6918cd6bf66 (patch) | |
tree | da7d407b8a2600520cfd37851f95aecd3ffea66d /include | |
parent | 05de7c0d26f50823c615fb38bcaad1dc84bf1bcd (diff) | |
download | kernel-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.h | 1 |
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 *); |
239 | void thermal_cooling_device_unregister(struct thermal_cooling_device *); | 239 | void thermal_cooling_device_unregister(struct thermal_cooling_device *); |
240 | struct thermal_zone_device *thermal_zone_get_zone_by_name(const char *name); | 240 | struct thermal_zone_device *thermal_zone_get_zone_by_name(const char *name); |
241 | int thermal_zone_get_temp(struct thermal_zone_device *tz, unsigned long *temp); | ||
241 | 242 | ||
242 | int get_tz_trend(struct thermal_zone_device *, int); | 243 | int get_tz_trend(struct thermal_zone_device *, int); |
243 | struct thermal_instance *get_thermal_instance(struct thermal_zone_device *, | 244 | struct thermal_instance *get_thermal_instance(struct thermal_zone_device *, |