thermal: qpnp-adc-tm: Fix inconsistent locking
This patch addresses the following locking error: qpnp-adc-tm.c:2979 qpnp_adc_tm_disable_chan_meas() warn: inconsistent returns 'mutex:&chip->adc->adc_lock' Bug: 77543262 Test: build & boot Change-Id: I65ed72180740598a3aef7af72c6e25b297996782 Signed-off-by: David Lin <dtwlin@google.com>
This commit is contained in:
parent
f4eac55067
commit
62386bac68
1 changed files with 3 additions and 3 deletions
|
|
@ -2938,21 +2938,21 @@ int32_t qpnp_adc_tm_disable_chan_meas(struct qpnp_adc_tm_chip *chip,
|
|||
QPNP_BTM_Mn_HIGH_THR_INT_EN, false);
|
||||
if (rc < 0) {
|
||||
pr_err("high thr disable err:%d\n", btm_chan_num);
|
||||
return rc;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
rc = qpnp_adc_tm_reg_update(chip, QPNP_BTM_Mn_EN(btm_chan_num),
|
||||
QPNP_BTM_Mn_LOW_THR_INT_EN, false);
|
||||
if (rc < 0) {
|
||||
pr_err("low thr disable err:%d\n", btm_chan_num);
|
||||
return rc;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
rc = qpnp_adc_tm_reg_update(chip, QPNP_BTM_Mn_EN(btm_chan_num),
|
||||
QPNP_BTM_Mn_MEAS_EN, false);
|
||||
if (rc < 0) {
|
||||
pr_err("multi measurement disable failed\n");
|
||||
return rc;
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue