summaryrefslogtreecommitdiff
path: root/include/linux/thermal.h
diff options
context:
space:
mode:
authorJoshua Primero <jprimero@nvidia.com>2012-08-28 10:00:39 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 01:33:56 -0700
commit17b54bbfa31dd34c7e9b0ce70cf5963ed2c98658 (patch)
treedbb42ec3b834412369859e51d8c68d0695f05dc3 /include/linux/thermal.h
parent6bd3f7e3672575a264e1ab00c7766670ea2debee (diff)
drivers: thermal: Add find device function
Added functionality to the linux thermal driver to find a particular device. Change-Id: I414ddcaa2607efb32a2a622676e3b9cd64758dc7 Signed-off-by: Joshua Primero <jprimero@nvidia.com> Reviewed-on: http://git-master/r/130283 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com> Rebase-Id: R6fdfa676b2cce1c6f563ad7e0dade89f254d9fd1
Diffstat (limited to 'include/linux/thermal.h')
-rw-r--r--include/linux/thermal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/thermal.h b/include/linux/thermal.h
index a386a1cbb6e1..b81b2750ce5f 100644
--- a/include/linux/thermal.h
+++ b/include/linux/thermal.h
@@ -241,6 +241,8 @@ struct thermal_cooling_device *thermal_cooling_device_register(char *, void *,
void thermal_cooling_device_unregister(struct thermal_cooling_device *);
struct thermal_zone_device *thermal_zone_get_zone_by_name(const char *name);
int thermal_zone_get_temp(struct thermal_zone_device *tz, unsigned long *temp);
+struct thermal_zone_device *thermal_zone_device_find(void *data,
+ int (*match)(struct thermal_zone_device *, void *));
int get_tz_trend(struct thermal_zone_device *, int);
struct thermal_instance *get_thermal_instance(struct thermal_zone_device *,