mfd: cros_ec: add ec_align macros
authorGwendal Grignou <gwendal@chromium.org>
Mon, 3 Jun 2019 18:33:35 +0000 (11:33 -0700)
committerLee Jones <lee.jones@linaro.org>
Mon, 10 Jun 2019 08:15:08 +0000 (09:15 +0100)
commit6f72c3f9bbdf08fde3b328c8bafbe8d667590b4e
treea13dfbe5f5fdb9aea78720425bcb041c5b8af99f
parentdf95a3bdf8f1fe110a50873f8f24eb2675b73d35
mfd: cros_ec: add ec_align macros

To reduce code and improve performance of the embedded controller
firmware, pragma __aligned(2) or __aligned(4) are used when alignment to
16 or 32 bit boundary is expected.

Define all ec_align to packed when compiling kernel.

Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Acked-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Acked-by: Benson Leung <bleung@chromium.org>
Reviewed-by: Fabien Lahoudere <fabien.lahoudere@collabora.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
include/linux/mfd/cros_ec_commands.h