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>
This commit is contained in:
Viresh Kumar 2015-04-28 19:51:41 +05:30 committed by Greg Kroah-Hartman
parent 499ee955a1
commit f03eec8772

View 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;