greybus: properly annotate struct gb_control_timesync_enable_request
authorGreg Kroah-Hartman <gregkh@google.com>
Sat, 5 Mar 2016 02:40:02 +0000 (18:40 -0800)
committerGreg Kroah-Hartman <gregkh@google.com>
Sat, 5 Mar 2016 16:38:03 +0000 (08:38 -0800)
A patch from created struct gb_control_timesync_enable_request,
but forgot to properly annotate that the fields are little-endian.  The
code is correct in treating them this way, so there isn't a bug, but
sparse complains.

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/greybus_protocols.h

index 27acbdd39571514554c1bc0c82f25a4d81829053..524c64987b42a02a979f48ecce176bba6b1910fe 100644 (file)
@@ -177,9 +177,9 @@ struct gb_control_interface_version_response {
 
 struct gb_control_timesync_enable_request {
        __u8    count;
-       __u64   frame_time;
-       __u32   strobe_delay;
-       __u32   refclk;
+       __le64  frame_time;
+       __le32  strobe_delay;
+       __le32  refclk;
 } __packed;
 /* timesync enable response has no payload */