summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2018-05-19 20:53:32 -0700
committerDavide Garberi <dade.garberi@gmail.com>2022-07-27 19:28:36 +0200
commit190089c6f28504f40917c65e8b15ce7ab73d6438 (patch)
treee42c91afa53d2bfe7ab2e4bc9f2c6e8c9ee33ec9
parent59b752a05075cf2e85536cc72f90a04f94d7f13f (diff)
thermal: tsens: Fix enum conversion warnings
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Change-Id: I2ee5808a86720b5bed360e6c5e4a3c96a530d8a2
-rw-r--r--drivers/thermal/msm-tsens.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/thermal/msm-tsens.c b/drivers/thermal/msm-tsens.c
index 558d09efab53..b8dbbed4d280 100644
--- a/drivers/thermal/msm-tsens.c
+++ b/drivers/thermal/msm-tsens.c
@@ -1845,8 +1845,8 @@ static irqreturn_t tsens_tm_critical_irq_thread(int irq, void *data)
TSENS_TM_CRITICAL_INT_CLEAR(
tm->tsens_addr));
critical_thr = true;
- tm->sensor[i].debug_thr_state_copy.
- crit_th_state = THERMAL_DEVICE_DISABLED;
+ tm->sensor[i].debug_thr_state_copy.crit_th_state =
+ THERMAL_TRIP_ACTIVATION_DISABLED;
}
spin_unlock_irqrestore(&tm->tsens_crit_lock, flags);
@@ -1927,8 +1927,8 @@ static irqreturn_t tsens_tm_irq_thread(int irq, void *data)
TSENS_TM_UPPER_LOWER_INT_CLEAR(
tm->tsens_addr));
upper_thr = true;
- tm->sensor[i].debug_thr_state_copy.
- high_th_state = THERMAL_DEVICE_DISABLED;
+ tm->sensor[i].debug_thr_state_copy.high_th_state =
+ THERMAL_TRIP_ACTIVATION_DISABLED;
}
if ((status & TSENS_TM_SN_STATUS_LOWER_STATUS) &&
@@ -1948,8 +1948,8 @@ static irqreturn_t tsens_tm_irq_thread(int irq, void *data)
TSENS_TM_UPPER_LOWER_INT_CLEAR(
tm->tsens_addr));
lower_thr = true;
- tm->sensor[i].debug_thr_state_copy.
- low_th_state = THERMAL_DEVICE_DISABLED;
+ tm->sensor[i].debug_thr_state_copy.low_th_state =
+ THERMAL_TRIP_ACTIVATION_DISABLED;
}
spin_unlock_irqrestore(&tm->tsens_upp_low_lock, flags);
@@ -2026,16 +2026,16 @@ static irqreturn_t tsens_irq_thread(int irq, void *data)
TSENS_S0_UPPER_LOWER_STATUS_CTRL_ADDR(
tm->tsens_addr + addr_offset));
upper_thr = true;
- tm->sensor[i].debug_thr_state_copy.
- high_th_state = THERMAL_DEVICE_DISABLED;
+ tm->sensor[i].debug_thr_state_copy.high_th_state =
+ THERMAL_TRIP_ACTIVATION_DISABLED;
}
if (status & TSENS_SN_STATUS_LOWER_STATUS) {
writel_relaxed(threshold | TSENS_LOWER_STATUS_CLR,
TSENS_S0_UPPER_LOWER_STATUS_CTRL_ADDR(
tm->tsens_addr + addr_offset));
lower_thr = true;
- tm->sensor[i].debug_thr_state_copy.
- low_th_state = THERMAL_DEVICE_DISABLED;
+ tm->sensor[i].debug_thr_state_copy.low_th_state =
+ THERMAL_TRIP_ACTIVATION_DISABLED;
}
if (upper_thr || lower_thr) {
int temp;