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

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

Merge "iio: adc: qcom-tadc: cast raw ADC readings before conversion"

parents adb38b45 bb2c232a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -398,7 +398,7 @@ static int tadc_do_conversion(struct tadc_chip *chip, u8 channels, s16 *adc)
	}

	for (i = 0; i < TADC_NUM_CH; i++)
		adc[i] = val[i * 2] | val[i * 2 + 1] << BITS_PER_BYTE;
		adc[i] = (s16)(val[i * 2] | (u16)val[i * 2 + 1] << 8);

	return jiffies_to_msecs(timeout - timeleft);
}