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 <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>
diff --git a/drivers/staging/greybus/greybus_manifest.h b/drivers/staging/greybus/greybus_manifest.h
index 9d32a4c..05af029 100644
--- a/drivers/staging/greybus/greybus_manifest.h
+++ b/drivers/staging/greybus/greybus_manifest.h
@@ -118,8 +118,8 @@
* exchanged using the CPort.
*/
struct greybus_descriptor_cport {
- __u8 bundle;
__le16 id;
+ __u8 bundle;
__u8 protocol_id; /* enum greybus_protocol */
} __packed;