Commit 499ee955 authored by Viresh Kumar's avatar Viresh Kumar Committed by Greg Kroah-Hartman

greybus: Explicitly add pad-bytes to manifest descriptors

Explicitly add pad-bytes to manifest descriptors to match their layout
in greybus specification.
Reviewed-by: default avatarAlex Elder <elder@linaro.org>
Reviewed-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent b022515e
...@@ -83,6 +83,7 @@ struct greybus_descriptor_string { ...@@ -83,6 +83,7 @@ struct greybus_descriptor_string {
struct greybus_descriptor_interface { struct greybus_descriptor_interface {
__u8 vendor_stringid; __u8 vendor_stringid;
__u8 product_stringid; __u8 product_stringid;
__u8 pad[2];
} __packed; } __packed;
/* /*
...@@ -107,6 +108,7 @@ struct greybus_descriptor_interface { ...@@ -107,6 +108,7 @@ struct greybus_descriptor_interface {
struct greybus_descriptor_bundle { struct greybus_descriptor_bundle {
__u8 id; /* interface-relative id (0..) */ __u8 id; /* interface-relative id (0..) */
__u8 class; __u8 class;
__u8 pad[2];
} __packed; } __packed;
/* /*
...@@ -124,6 +126,7 @@ struct greybus_descriptor_cport { ...@@ -124,6 +126,7 @@ struct greybus_descriptor_cport {
struct greybus_descriptor_header { struct greybus_descriptor_header {
__le16 size; __le16 size;
__u8 type; /* enum greybus_descriptor_type */ __u8 type; /* enum greybus_descriptor_type */
__u8 pad;
} __packed; } __packed;
struct greybus_descriptor { struct greybus_descriptor {
......
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