Commit da9dd119 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

greybus: operation: add explicit padding to message header

Add explicit pad bytes to the message header.
Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Reviewed-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 1e5613b4
...@@ -66,7 +66,7 @@ struct gb_operation_msg_hdr { ...@@ -66,7 +66,7 @@ struct gb_operation_msg_hdr {
__le16 operation_id; /* Operation unique id */ __le16 operation_id; /* Operation unique id */
__u8 type; /* E.g GB_I2C_TYPE_* or GB_GPIO_TYPE_* */ __u8 type; /* E.g GB_I2C_TYPE_* or GB_GPIO_TYPE_* */
__u8 result; /* Result of request (in responses only) */ __u8 result; /* Result of request (in responses only) */
/* 2 bytes pad, must be zero (ignore when read) */ __u8 pad[2]; /* must be zero (ignore when read) */
} __aligned(sizeof(u64)); } __aligned(sizeof(u64));
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment