From f03eec87720d3427443b64f2d1b237b85d5c68b4 Mon Sep 17 00:00:00 2001 From: Viresh Kumar Date: Tue, 28 Apr 2015 19:51:41 +0530 Subject: [PATCH] greybus: Move id-field before bundle-field in CPort Descriptor. Note that this also makes sure the id-field is naturally aligned in case we ever were to remove the __packed attribute. Reviewed-by: Alex Elder Reviewed-by: Johan Hovold Signed-off-by: Viresh Kumar Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/greybus_manifest.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/greybus/greybus_manifest.h b/drivers/staging/greybus/greybus_manifest.h index 9d32a4c66bc9..05af0292b690 100644 --- a/drivers/staging/greybus/greybus_manifest.h +++ b/drivers/staging/greybus/greybus_manifest.h @@ -118,8 +118,8 @@ struct greybus_descriptor_bundle { * exchanged using the CPort. */ struct greybus_descriptor_cport { - __u8 bundle; __le16 id; + __u8 bundle; __u8 protocol_id; /* enum greybus_protocol */ } __packed; -- 2.20.1