OSDN Git Service

greybus: greybus_protocols: Pack all request/response structure
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 31 Aug 2015 11:51:04 +0000 (17:21 +0530)
committerJohan Hovold <johan@hovoldconsulting.com>
Thu, 3 Sep 2015 12:24:30 +0000 (14:24 +0200)
commitb701686a3e6739bc8bd94fba13809e25a4ce1bd3
tree02cde6c7c6a6da7e5124e993f07d31e9b52d56a2
parent829a91e7155e4cb5c90e99ebd6048c7618b29e9b
greybus: greybus_protocols: Pack all request/response structure

These structures are exchanged between the AP and the module and must be
packed to avoid any unwanted holes.

Its all working currently because compiler doesn't add any pad bytes for
these structures, as their elements are already aligned to their size.

But these structures can change in future and we better mark them
packed.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
drivers/staging/greybus/greybus_protocols.h