summaryrefslogtreecommitdiff
path: root/drivers/thermal
diff options
context:
space:
mode:
authorSiddartha Mohanadoss <smohanad@codeaurora.org>2016-09-13 14:26:07 -0700
committerSiddartha Mohanadoss <smohanad@codeaurora.org>2016-09-22 11:30:54 -0700
commite1424860a53d22be47bb6372c0cbab86f5070b00 (patch)
tree7b48f85862956fe5dd62ad54c0d34cb8341dec3a /drivers/thermal
parent42d4a124b21b75029df4eec72b856917662925e9 (diff)
thermal: adc_tm: Initialize ADC parameters
Initialize ADC parameters for decimation rate and LDO enable. Common ADC decimation settings is used across the battery thermistor threshold channels. Change-Id: I99ce1e5940506a5e65debfe822460c210a276b00 Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/qpnp-adc-tm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/qpnp-adc-tm.c b/drivers/thermal/qpnp-adc-tm.c
index 84ab45fde4ae..c78406cb3325 100644
--- a/drivers/thermal/qpnp-adc-tm.c
+++ b/drivers/thermal/qpnp-adc-tm.c
@@ -492,7 +492,7 @@ static int32_t qpnp_adc_tm_rc_check_channel_en(struct qpnp_adc_tm_chip *chip)
{
u8 adc_tm_ctl = 0, status_low = 0, status_high = 0;
int rc = 0, i = 0;
- bool ldo_en;
+ bool ldo_en = false;
for (i = 0; i < chip->max_channels_available; i++) {
rc = qpnp_adc_tm_read_reg(chip, QPNP_BTM_Mn_CTL(i),