From 1455db9e1ba3f602084854fa9c222e9b68e8576c Mon Sep 17 00:00:00 2001 From: Bryan O'Donoghue Date: Mon, 18 Jul 2016 14:59:37 +0100 Subject: [PATCH] greybus: greybus_protocols.h: convert __u32 to __le32 All 32 bit declarations associated with data interchange to the greybus network need to be declared explicitly as little-endian since that is the byte order we use on the greybus network. struct gb_audio_topology is declaring its variables as u32. Fortunately this structure isn't currently used so we can do a conversion from u32 to __le32 without any ancillary code-churn. Signed-off-by: Bryan O'Donoghue Reviewed-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/greybus_protocols.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/greybus/greybus_protocols.h b/drivers/staging/greybus/greybus_protocols.h index d39a580a3a55..1966136d0649 100644 --- a/drivers/staging/greybus/greybus_protocols.h +++ b/drivers/staging/greybus/greybus_protocols.h @@ -2161,10 +2161,10 @@ struct gb_audio_topology { __u8 num_controls; __u8 num_widgets; __u8 num_routes; - __u32 size_dais; - __u32 size_controls; - __u32 size_widgets; - __u32 size_routes; + __le32 size_dais; + __le32 size_controls; + __le32 size_widgets; + __le32 size_routes; /* * struct gb_audio_dai dai[num_dais]; * struct gb_audio_control controls[num_controls]; -- 2.39.5