summaryrefslogtreecommitdiffstats
path: root/include/linux/thermal.h
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2013-02-08 14:52:06 +0800
committerZhang Rui <rui.zhang@intel.com>2013-03-26 14:33:50 +0800
commit57df8106932b57427df1eaaa13871857f75b1194 (patch)
tree031702338779869067dde6be83aedeee9e8d6e2b /include/linux/thermal.h
parentfc35b35cbe24ef021ea9acfba21e54da958df747 (diff)
downloadop-kernel-dev-57df8106932b57427df1eaaa13871857f75b1194.zip
op-kernel-dev-57df8106932b57427df1eaaa13871857f75b1194.tar.gz
Thermal: exynos: fix cooling state translation
Signed-off-by: Zhang Rui <rui.zhang@intel.com> Tested-by: Amit Daniel kachhap <amit.daniel@samsung.com>
Diffstat (limited to 'include/linux/thermal.h')
-rw-r--r--include/linux/thermal.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/thermal.h b/include/linux/thermal.h
index f0bd7f9..5a3b428 100644
--- a/include/linux/thermal.h
+++ b/include/linux/thermal.h
@@ -33,8 +33,11 @@
#define THERMAL_MAX_TRIPS 12
#define THERMAL_NAME_LENGTH 20
+/* invalid cooling state */
+#define THERMAL_CSTATE_INVALID -1UL
+
/* No upper/lower limit requirement */
-#define THERMAL_NO_LIMIT -1UL
+#define THERMAL_NO_LIMIT THERMAL_CSTATE_INVALID
/* Unit conversion macros */
#define KELVIN_TO_CELSIUS(t) (long)(((long)t-2732 >= 0) ? \
OpenPOWER on IntegriCloud