summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/greybus_manifest.h
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-04-28 19:51:40 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2015-05-01 21:08:05 +0200
commit499ee955a132c772d14b839bcec3adef2eebcb6b (patch)
tree001502936dd9b3a1498656fb18603ccfa1d0b480 /drivers/staging/greybus/greybus_manifest.h
parentb022515ee64b38baed81b83a47783cbb52b9c5f9 (diff)
greybus: Explicitly add pad-bytes to manifest descriptors
Explicitly add pad-bytes to manifest descriptors to match their layout in greybus specification. Reviewed-by: Alex Elder <elder@linaro.org> Reviewed-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/greybus_manifest.h')
-rw-r--r--drivers/staging/greybus/greybus_manifest.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/greybus/greybus_manifest.h b/drivers/staging/greybus/greybus_manifest.h
index 60f183a9940a..9d32a4c66bc9 100644
--- a/drivers/staging/greybus/greybus_manifest.h
+++ b/drivers/staging/greybus/greybus_manifest.h
@@ -83,6 +83,7 @@ struct greybus_descriptor_string {
struct greybus_descriptor_interface {
__u8 vendor_stringid;
__u8 product_stringid;
+ __u8 pad[2];
} __packed;
/*
@@ -107,6 +108,7 @@ struct greybus_descriptor_interface {
struct greybus_descriptor_bundle {
__u8 id; /* interface-relative id (0..) */
__u8 class;
+ __u8 pad[2];
} __packed;
/*
@@ -124,6 +126,7 @@ struct greybus_descriptor_cport {
struct greybus_descriptor_header {
__le16 size;
__u8 type; /* enum greybus_descriptor_type */
+ __u8 pad;
} __packed;
struct greybus_descriptor {