summaryrefslogtreecommitdiff
path: root/include/linux/thermal.h
diff options
context:
space:
mode:
authorJonghwa Lee <jonghwa3.lee@samsung.com>2013-11-01 18:44:14 +0900
committerMyungJoo Ham <myungjoo.ham@samsung.com>2013-11-15 13:52:55 +0900
commit2beeb87d2a585562e9c7cdd1e4193a4064c0844d (patch)
treedc7b69aa1f62bc3e739e145197535fbf87e948d4 /include/linux/thermal.h
parentfc17901a7e6a72f7b3f84b6661b7fe417ba48870 (diff)
downloadlinux-3.10-2beeb87d2a585562e9c7cdd1e4193a4064c0844d.tar.gz
linux-3.10-2beeb87d2a585562e9c7cdd1e4193a4064c0844d.tar.bz2
linux-3.10-2beeb87d2a585562e9c7cdd1e4193a4064c0844d.zip
thermal: Add ommitted codes from merging.
Add omitted codes from commits, <commit-id d9e6913d1> "drivers: thermal: add check when ~ ", and <commit-id efbf8d7a3> "thermal: thermal_core: allow binding with ~" Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Diffstat (limited to 'include/linux/thermal.h')
-rw-r--r--include/linux/thermal.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/thermal.h b/include/linux/thermal.h
index f1aa3c23274..b316bdfc91a 100644
--- a/include/linux/thermal.h
+++ b/include/linux/thermal.h
@@ -209,6 +209,16 @@ struct thermal_bind_params {
* See Documentation/thermal/sysfs-api.txt for more information.
*/
int trip_mask;
+
+ /*
+ * This is an array of cooling state limits. Must have exactly
+ * 2 * thermal_zone.number_of_trip_points. It is an array consisting
+ * of tuples <lower-state upper-state> of state limits. Each trip
+ * will be associated with one state limit tuple when binding.
+ * A NULL pointer means <THERMAL_NO_LIMITS THERMAL_NO_LIMITS>
+ * on all trips.
+ */
+ unsigned long *binding_limits;
int (*match) (struct thermal_zone_device *tz,
struct thermal_cooling_device *cdev);
};
@@ -216,6 +226,14 @@ struct thermal_bind_params {
/* Structure to define Thermal Zone parameters */
struct thermal_zone_params {
char governor_name[THERMAL_NAME_LENGTH];
+
+ /*
+ * a boolean to indicate if the thermal to hwmon sysfs interface
+ * is required. when no_hwmon == false, a hwmon sysfs interface
+ * will be created. when no_hwmon == true, nothing will be done
+ */
+ bool no_hwmon;
+
int num_tbps; /* Number of tbp entries */
struct thermal_bind_params *tbp;
};