Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c16f4251 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "thermal: adc_tm: Correct variable initialization"

parents de910330 84dbbf9e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -275,6 +275,8 @@ static int32_t adc_tm5_thr_update(struct adc_tm_sensor *sensor,
	struct adc_tm_config tm_config;
	struct adc_tm_chip *chip;

	chip = sensor->chip;

	ret = adc_tm5_get_btm_idx(chip,
		sensor->btm_ch, &btm_chan_idx);
	if (ret < 0) {
@@ -282,8 +284,6 @@ static int32_t adc_tm5_thr_update(struct adc_tm_sensor *sensor,
		return ret;
	}

	chip = sensor->chip;

	tm_config.high_thr_voltage = (int64_t)high_thr;
	tm_config.low_thr_voltage = (int64_t)low_thr;
	tm_config.prescal = sensor->prescaling;