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

Commit 5724f78c authored by Jishnu Prakash's avatar Jishnu Prakash Committed by Gerrit - the friendly Code Review server
Browse files

thermal: tsens: Update order of members in TSENS device structure



Last member of TSENS device structure should be pointer to
sensor array of variable size. Move the mtcsys member
above to avoid corrupting the array of sensor structs.

Change-Id: I41b814af4a28e9de2c09b92623b010b835e56c1d
Signed-off-by: default avatarJishnu Prakash <jprakash@codeaurora.org>
parent f61cd8b8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -157,8 +157,8 @@ struct tsens_device {
	spinlock_t			tsens_crit_lock;
	spinlock_t			tsens_upp_low_lock;
	const struct tsens_data		*ctrl_data;
	struct tsens_sensor		sensor[0];
	struct tsens_mtc_sysfs  mtcsys;
	struct tsens_sensor		sensor[0];
};

extern const struct tsens_data data_tsens2xxx, data_tsens23xx, data_tsens24xx;