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: Jishnu Prakash <jprakash@codeaurora.org>
This commit is contained in:
Jishnu Prakash
2018-05-16 10:42:15 +05:30
committed by Gerrit - the friendly Code Review server
parent f61cd8b848
commit 5724f78c36

View File

@@ -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_mtc_sysfs mtcsys;
struct tsens_sensor sensor[0];
struct tsens_mtc_sysfs mtcsys;
};
extern const struct tsens_data data_tsens2xxx, data_tsens23xx, data_tsens24xx;