msm: thermal: Use signed int for temperature
Temperatures could be in negative and negative signed ints may be
incorrectly read as unsigned int.
Change-Id: I817db2756c54816296a700ffcd004a83161f2b95
CRs-Fixed: 441632, 473507
Signed-off-by: Praveen Chidambaram <pchidamb@codeaurora.org>
diff --git a/include/linux/msm_thermal.h b/include/linux/msm_thermal.h
index c89169c..aa14f76 100644
--- a/include/linux/msm_thermal.h
+++ b/include/linux/msm_thermal.h
@@ -17,11 +17,11 @@
struct msm_thermal_data {
uint32_t sensor_id;
uint32_t poll_ms;
- uint32_t limit_temp_degC;
- uint32_t temp_hysteresis_degC;
+ int32_t limit_temp_degC;
+ int32_t temp_hysteresis_degC;
uint32_t freq_step;
- uint32_t core_limit_temp_degC;
- uint32_t core_temp_hysteresis_degC;
+ int32_t core_limit_temp_degC;
+ int32_t core_temp_hysteresis_degC;
uint32_t core_control_mask;
};