From: Viresh Kumar Date: Tue, 28 Apr 2015 14:21:41 +0000 (+0530) Subject: greybus: Move id-field before bundle-field in CPort Descriptor. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f03eec87720d3427443b64f2d1b237b85d5c68b4;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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;