mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
Thermal: exynos: fix cooling state translation
Signed-off-by: Zhang Rui <rui.zhang@intel.com> Tested-by: Amit Daniel kachhap <amit.daniel@samsung.com>
This commit is contained in:
parent
fc35b35cbe
commit
57df810693
4 changed files with 24 additions and 23 deletions
|
@ -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) ? \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue