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

Commit b7dbbd5b authored by Joonwoo Park's avatar Joonwoo Park Committed by Michael Bohan
Browse files

thermal: tsens: fix compilation warning



Initialize calibration data for calibration less mode.
This eliminates compilation warning too.

drivers/thermal/msm8974-tsens.c:896:34: warning: 'calib_data[1]'
may be used uninitialized in this function [-Wuninitialized]

Change-Id: I715f28a7c0787435dcbbff8f48f26eae64b5f820
Signed-off-by: default avatarJoonwoo Park <joonwoop@codeaurora.org>
parent 7f918cb5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -863,7 +863,7 @@ static int tsens_calib_8916_sensors(void)
	int tsens3_point1 = 0, tsens3_point2 = 0;
	int tsens4_point1 = 0, tsens4_point2 = 0;
	int tsens_calibration_mode = 0;
	uint32_t calib_data[3];
	uint32_t calib_data[3] = {0, 0, 0};
	uint32_t calib_tsens_point1_data[5], calib_tsens_point2_data[5];

	if (!tmdev->calibration_less_mode) {