greybus: camera: fix data types of operations
authorRui Miguel Silva <rui.silva@linaro.org>
Thu, 17 Dec 2015 19:56:23 +0000 (19:56 +0000)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 18 Dec 2015 02:16:11 +0000 (18:16 -0800)
In some operations definitions it was introduce some new fields with
the wrong data types, u8, instead of __u8. And because of this gbsim
build was broken.

Fixes: 3a1d7aa15bf6 ("greybus: Add camera protocol definition")

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/greybus_protocols.h

index f024acd..770a162 100644 (file)
@@ -1143,18 +1143,18 @@ struct gb_camera_stream_config_response {
 struct gb_camera_configure_streams_response {
        __le16 num_streams;
 #define GB_CAMERA_CONFIGURE_STREAMS_ADJUSTED   0x01
-       u8 flags;
-       u8 padding;
+       __u8 flags;
+       __u8 padding;
        struct gb_camera_stream_config_response config[0];
 } __packed;
 
 /* Greybus Camera Capture request payload - response has no payload */
 struct gb_camera_capture_request {
        __le32 request_id;
-       u8 streams;
-       u8 padding;
+       __u8 streams;
+       __u8 padding;
        __le16 num_frames;
-       u8 settings[0];
+       __u8 settings[0];
 } __packed;
 
 /* Greybus Camera Flush response payload - request has no payload */
@@ -1168,7 +1168,7 @@ struct gb_camera_metadata_request {
        __le16 frame_number;
        __u8 stream;
        __u8 padding;
-       u8 metadata[0];
+       __u8 metadata[0];
 } __packed;
 
 /* Lights */