summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLukasz Majewski <l.majewski@samsung.com>2014-12-08 18:04:19 +0100
committerEduardo Valentin <edubezval@gmail.com>2014-12-08 20:53:55 +0100
commitad9914ac3b1f5c12ef2cf1c58a6ddda306fb79d4 (patch)
tree893a3ae88d65d29dd65a3968f597402b6c8b5c62 /include
parentthermal: of: Extend of-thermal.c to provide check if trip point is valid (diff)
downloadlinux-ad9914ac3b1f5c12ef2cf1c58a6ddda306fb79d4.tar.xz
linux-ad9914ac3b1f5c12ef2cf1c58a6ddda306fb79d4.zip
thermal: of: Rename struct __thermal_trip to struct thermal_trip
This patch changes name of struct __thermal_trip to thermal_trip and moves declaration of the latter to ./include/linux/thermal.h for better visibility. Signed-off-by: Lukasz Majewski <l.majewski@samsung.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/thermal.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/thermal.h b/include/linux/thermal.h
index 5bc28a70014e..b8d91efa854e 100644
--- a/include/linux/thermal.h
+++ b/include/linux/thermal.h
@@ -303,6 +303,21 @@ struct thermal_zone_of_device_ops {
int (*get_trend)(void *, long *);
};
+/**
+ * struct thermal_trip - representation of a point in temperature domain
+ * @np: pointer to struct device_node that this trip point was created from
+ * @temperature: temperature value in miliCelsius
+ * @hysteresis: relative hysteresis in miliCelsius
+ * @type: trip point type
+ */
+
+struct thermal_trip {
+ struct device_node *np;
+ unsigned long int temperature;
+ unsigned long int hysteresis;
+ enum thermal_trip_type type;
+};
+
/* Function declarations */
#ifdef CONFIG_THERMAL_OF
struct thermal_zone_device *