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

Commit 53c21240 authored by Jishnu Prakash's avatar Jishnu Prakash
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 351d8d23
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -153,8 +153,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;