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

Commit bdaf9138 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "iio: rradc: Update thermistor scaling"

parents d6971f3c aec312fa
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -331,8 +331,8 @@ static int rradc_post_process_therm(struct rradc_chip *chip,
	int64_t temp;

	/* K = code/4 */
	temp = div64_s64(adc_code, FG_ADC_RR_BATT_THERM_LSB_K);
	temp *= FG_ADC_SCALE_MILLI_FACTOR;
	temp = ((int64_t)adc_code * FG_ADC_SCALE_MILLI_FACTOR);
	temp = div64_s64(temp, FG_ADC_RR_BATT_THERM_LSB_K);
	*result_millidegc = temp - FG_ADC_KELVINMIL_CELSIUSMIL;

	return 0;