]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
greybus: Move id-field before bundle-field in CPort Descriptor.
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 28 Apr 2015 14:21:41 +0000 (19:51 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 1 May 2015 19:08:05 +0000 (21:08 +0200)
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>
drivers/staging/greybus/greybus_manifest.h

index 9d32a4c66bc942a4c46985ea02f9214f204ba047..05af0292b690d6982b7c27ffd931972e4fc04335 100644 (file)
@@ -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;