Skip to content

Commit 8e77c83

Browse files
rmsilvagregkh
authored andcommitted
greybus: camera: fix data types of operations
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 65fabd1 commit 8e77c83

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/staging/greybus/greybus_protocols.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,18 +1143,18 @@ struct gb_camera_stream_config_response {
11431143
struct gb_camera_configure_streams_response {
11441144
__le16 num_streams;
11451145
#define GB_CAMERA_CONFIGURE_STREAMS_ADJUSTED 0x01
1146-
u8 flags;
1147-
u8 padding;
1146+
__u8 flags;
1147+
__u8 padding;
11481148
struct gb_camera_stream_config_response config[0];
11491149
} __packed;
11501150

11511151
/* Greybus Camera Capture request payload - response has no payload */
11521152
struct gb_camera_capture_request {
11531153
__le32 request_id;
1154-
u8 streams;
1155-
u8 padding;
1154+
__u8 streams;
1155+
__u8 padding;
11561156
__le16 num_frames;
1157-
u8 settings[0];
1157+
__u8 settings[0];
11581158
} __packed;
11591159

11601160
/* Greybus Camera Flush response payload - request has no payload */
@@ -1168,7 +1168,7 @@ struct gb_camera_metadata_request {
11681168
__le16 frame_number;
11691169
__u8 stream;
11701170
__u8 padding;
1171-
u8 metadata[0];
1171+
__u8 metadata[0];
11721172
} __packed;
11731173

11741174
/* Lights */

0 commit comments

Comments
 (0)