diff options
Diffstat (limited to 'drivers/thermal/msm-tsens.c')
-rw-r--r-- | drivers/thermal/msm-tsens.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/thermal/msm-tsens.c b/drivers/thermal/msm-tsens.c index d7cc99ba6c40..558d09efab53 100644 --- a/drivers/thermal/msm-tsens.c +++ b/drivers/thermal/msm-tsens.c @@ -199,9 +199,9 @@ enum tsens_tm_trip_type { #define TSENS_TM_WRITABLE_TRIPS_MASK ((1 << TSENS_TM_TRIP_NUM) - 1) struct tsens_thrshld_state { - enum thermal_device_mode high_th_state; - enum thermal_device_mode low_th_state; - enum thermal_device_mode crit_th_state; + int high_th_state; + int low_th_state; + int crit_th_state; unsigned int high_adc_code; unsigned int low_adc_code; int high_temp; @@ -2252,11 +2252,11 @@ static int get_device_tree_data(struct platform_device *pdev, tmdev->wd_bark_val = wd_bark; } - if (!strcmp(id->compatible, "qcom,msm8996-tsens") || - (!strcmp(id->compatible, "qcom,msm8998-tsens"))) + if (!strcmp(id->compatible, "qcom,msm8996-tsens")) tmdev->tsens_type = TSENS_TYPE3; else if (!strcmp(id->compatible, "qcom,msmtitanium-tsens") || (!strcmp(id->compatible, "qcom,sdm660-tsens")) || + (!strcmp(id->compatible, "qcom,msm8998-tsens")) || (!strcmp(id->compatible, "qcom,sdm630-tsens")) || (!strcmp(id->compatible, "qcom,msmhamster-tsens"))) { tmdev->tsens_type = TSENS_TYPE3; |