From 8e77c83e2a6ea1977de0b6e144b90faf1bd4f418 Mon Sep 17 00:00:00 2001 From: Rui Miguel Silva Date: Thu, 17 Dec 2015 19:56:23 +0000 Subject: [PATCH] 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/greybus_protocols.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/greybus/greybus_protocols.h b/drivers/staging/greybus/greybus_protocols.h index f024acdc0c43..770a162e55f3 100644 --- a/drivers/staging/greybus/greybus_protocols.h +++ b/drivers/staging/greybus/greybus_protocols.h @@ -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 */ -- 2.20.1