thermal: imx_sc_thermal: Align imx sc thermal msg structs to 4
authorAnson Huang <Anson.Huang@nxp.com>
Mon, 2 Mar 2020 02:51:25 +0000 (10:51 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 12 Mar 2020 10:56:53 +0000 (11:56 +0100)
commit1fd213f38b999b95777d4dddc7e232e08f2294c8
treed6de7816b26d93ce2e6144ed14d21e7efd6bca5b
parent7375f2ac6b2d5f42ebc42e25f5251aa3284f30ed
thermal: imx_sc_thermal: Align imx sc thermal msg structs to 4

The i.MX SCU API strongly assumes that messages are composed out
of 4-bytes words but some of our message structs have odd sizeofs,
use __packed __aligned(4) to avoid potential oopses.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/1583117485-30922-1-git-send-email-Anson.Huang@nxp.com
drivers/thermal/imx_sc_thermal.c