Commit 97f0117b authored by Anson Jacob's avatar Anson Jacob Committed by Felipe Balbi

usb: gadget: Fix checkpatch error for braces

Fix error message by checkpath.pl
open brace '{' following struct/enum go on the same line

Patch applied by running fix inplace capability of checkpatch:
checkpatch.pl -f *.[ch] --types OPEN_BRACE --fix-inplace
Signed-off-by: default avatarAnson Jacob <ansonjacob.aj@gmail.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 6ae660b5
...@@ -80,8 +80,7 @@ static const struct file_operations rndis_proc_fops; ...@@ -80,8 +80,7 @@ static const struct file_operations rndis_proc_fops;
#endif /* CONFIG_USB_GADGET_DEBUG_FILES */ #endif /* CONFIG_USB_GADGET_DEBUG_FILES */
/* supported OIDs */ /* supported OIDs */
static const u32 oid_supported_list[] = static const u32 oid_supported_list[] = {
{
/* the general stuff */ /* the general stuff */
RNDIS_OID_GEN_SUPPORTED_LIST, RNDIS_OID_GEN_SUPPORTED_LIST,
RNDIS_OID_GEN_HARDWARE_STATUS, RNDIS_OID_GEN_HARDWARE_STATUS,
......
...@@ -22,8 +22,7 @@ ...@@ -22,8 +22,7 @@
#define RNDIS_MAXIMUM_FRAME_SIZE 1518 #define RNDIS_MAXIMUM_FRAME_SIZE 1518
#define RNDIS_MAX_TOTAL_SIZE 1558 #define RNDIS_MAX_TOTAL_SIZE 1558
typedef struct rndis_init_msg_type typedef struct rndis_init_msg_type {
{
__le32 MessageType; __le32 MessageType;
__le32 MessageLength; __le32 MessageLength;
__le32 RequestID; __le32 RequestID;
...@@ -32,8 +31,7 @@ typedef struct rndis_init_msg_type ...@@ -32,8 +31,7 @@ typedef struct rndis_init_msg_type
__le32 MaxTransferSize; __le32 MaxTransferSize;
} rndis_init_msg_type; } rndis_init_msg_type;
typedef struct rndis_init_cmplt_type typedef struct rndis_init_cmplt_type {
{
__le32 MessageType; __le32 MessageType;
__le32 MessageLength; __le32 MessageLength;
__le32 RequestID; __le32 RequestID;
...@@ -49,15 +47,13 @@ typedef struct rndis_init_cmplt_type ...@@ -49,15 +47,13 @@ typedef struct rndis_init_cmplt_type
__le32 AFListSize; __le32 AFListSize;
} rndis_init_cmplt_type; } rndis_init_cmplt_type;
typedef struct rndis_halt_msg_type typedef struct rndis_halt_msg_type {
{
__le32 MessageType; __le32 MessageType;
__le32 MessageLength; __le32 MessageLength;
__le32 RequestID; __le32 RequestID;
} rndis_halt_msg_type; } rndis_halt_msg_type;
typedef struct rndis_query_msg_type typedef struct rndis_query_msg_type {
{
__le32 MessageType; __le32 MessageType;
__le32 MessageLength; __le32 MessageLength;
__le32 RequestID; __le32 RequestID;
...@@ -67,8 +63,7 @@ typedef struct rndis_query_msg_type ...@@ -67,8 +63,7 @@ typedef struct rndis_query_msg_type
__le32 DeviceVcHandle; __le32 DeviceVcHandle;
} rndis_query_msg_type; } rndis_query_msg_type;
typedef struct rndis_query_cmplt_type typedef struct rndis_query_cmplt_type {
{
__le32 MessageType; __le32 MessageType;
__le32 MessageLength; __le32 MessageLength;
__le32 RequestID; __le32 RequestID;
...@@ -77,8 +72,7 @@ typedef struct rndis_query_cmplt_type ...@@ -77,8 +72,7 @@ typedef struct rndis_query_cmplt_type
__le32 InformationBufferOffset; __le32 InformationBufferOffset;
} rndis_query_cmplt_type; } rndis_query_cmplt_type;
typedef struct rndis_set_msg_type typedef struct rndis_set_msg_type {
{
__le32 MessageType; __le32 MessageType;
__le32 MessageLength; __le32 MessageLength;
__le32 RequestID; __le32 RequestID;
...@@ -88,31 +82,27 @@ typedef struct rndis_set_msg_type ...@@ -88,31 +82,27 @@ typedef struct rndis_set_msg_type
__le32 DeviceVcHandle; __le32 DeviceVcHandle;
} rndis_set_msg_type; } rndis_set_msg_type;
typedef struct rndis_set_cmplt_type typedef struct rndis_set_cmplt_type {
{
__le32 MessageType; __le32 MessageType;
__le32 MessageLength; __le32 MessageLength;
__le32 RequestID; __le32 RequestID;
__le32 Status; __le32 Status;
} rndis_set_cmplt_type; } rndis_set_cmplt_type;
typedef struct rndis_reset_msg_type typedef struct rndis_reset_msg_type {
{
__le32 MessageType; __le32 MessageType;
__le32 MessageLength; __le32 MessageLength;
__le32 Reserved; __le32 Reserved;
} rndis_reset_msg_type; } rndis_reset_msg_type;
typedef struct rndis_reset_cmplt_type typedef struct rndis_reset_cmplt_type {
{
__le32 MessageType; __le32 MessageType;
__le32 MessageLength; __le32 MessageLength;
__le32 Status; __le32 Status;
__le32 AddressingReset; __le32 AddressingReset;
} rndis_reset_cmplt_type; } rndis_reset_cmplt_type;
typedef struct rndis_indicate_status_msg_type typedef struct rndis_indicate_status_msg_type {
{
__le32 MessageType; __le32 MessageType;
__le32 MessageLength; __le32 MessageLength;
__le32 Status; __le32 Status;
...@@ -120,23 +110,20 @@ typedef struct rndis_indicate_status_msg_type ...@@ -120,23 +110,20 @@ typedef struct rndis_indicate_status_msg_type
__le32 StatusBufferOffset; __le32 StatusBufferOffset;
} rndis_indicate_status_msg_type; } rndis_indicate_status_msg_type;
typedef struct rndis_keepalive_msg_type typedef struct rndis_keepalive_msg_type {
{
__le32 MessageType; __le32 MessageType;
__le32 MessageLength; __le32 MessageLength;
__le32 RequestID; __le32 RequestID;
} rndis_keepalive_msg_type; } rndis_keepalive_msg_type;
typedef struct rndis_keepalive_cmplt_type typedef struct rndis_keepalive_cmplt_type {
{
__le32 MessageType; __le32 MessageType;
__le32 MessageLength; __le32 MessageLength;
__le32 RequestID; __le32 RequestID;
__le32 Status; __le32 Status;
} rndis_keepalive_cmplt_type; } rndis_keepalive_cmplt_type;
struct rndis_packet_msg_type struct rndis_packet_msg_type {
{
__le32 MessageType; __le32 MessageType;
__le32 MessageLength; __le32 MessageLength;
__le32 DataOffset; __le32 DataOffset;
...@@ -150,8 +137,7 @@ struct rndis_packet_msg_type ...@@ -150,8 +137,7 @@ struct rndis_packet_msg_type
__le32 Reserved; __le32 Reserved;
} __attribute__ ((packed)); } __attribute__ ((packed));
struct rndis_config_parameter struct rndis_config_parameter {
{
__le32 ParameterNameOffset; __le32 ParameterNameOffset;
__le32 ParameterNameLength; __le32 ParameterNameLength;
__le32 ParameterType; __le32 ParameterType;
...@@ -160,23 +146,20 @@ struct rndis_config_parameter ...@@ -160,23 +146,20 @@ struct rndis_config_parameter
}; };
/* implementation specific */ /* implementation specific */
enum rndis_state enum rndis_state {
{
RNDIS_UNINITIALIZED, RNDIS_UNINITIALIZED,
RNDIS_INITIALIZED, RNDIS_INITIALIZED,
RNDIS_DATA_INITIALIZED, RNDIS_DATA_INITIALIZED,
}; };
typedef struct rndis_resp_t typedef struct rndis_resp_t {
{
struct list_head list; struct list_head list;
u8 *buf; u8 *buf;
u32 length; u32 length;
int send; int send;
} rndis_resp_t; } rndis_resp_t;
typedef struct rndis_params typedef struct rndis_params {
{
int confignr; int confignr;
u8 used; u8 used;
u16 saved_filter; u16 saved_filter;
......
...@@ -26,14 +26,12 @@ ...@@ -26,14 +26,12 @@
#define UVC_EVENT_DATA (V4L2_EVENT_PRIVATE_START + 5) #define UVC_EVENT_DATA (V4L2_EVENT_PRIVATE_START + 5)
#define UVC_EVENT_LAST (V4L2_EVENT_PRIVATE_START + 5) #define UVC_EVENT_LAST (V4L2_EVENT_PRIVATE_START + 5)
struct uvc_request_data struct uvc_request_data {
{
__s32 length; __s32 length;
__u8 data[60]; __u8 data[60];
}; };
struct uvc_event struct uvc_event {
{
union { union {
enum usb_device_speed speed; enum usb_device_speed speed;
struct usb_ctrlrequest req; struct usb_ctrlrequest req;
...@@ -104,8 +102,7 @@ extern unsigned int uvc_gadget_trace_param; ...@@ -104,8 +102,7 @@ extern unsigned int uvc_gadget_trace_param;
* Structures * Structures
*/ */
struct uvc_video struct uvc_video {
{
struct usb_ep *ep; struct usb_ep *ep;
/* Frame parameters */ /* Frame parameters */
...@@ -134,15 +131,13 @@ struct uvc_video ...@@ -134,15 +131,13 @@ struct uvc_video
unsigned int fid; unsigned int fid;
}; };
enum uvc_state enum uvc_state {
{
UVC_STATE_DISCONNECTED, UVC_STATE_DISCONNECTED,
UVC_STATE_CONNECTED, UVC_STATE_CONNECTED,
UVC_STATE_STREAMING, UVC_STATE_STREAMING,
}; };
struct uvc_device struct uvc_device {
{
struct video_device vdev; struct video_device vdev;
struct v4l2_device v4l2_dev; struct v4l2_device v4l2_dev;
enum uvc_state state; enum uvc_state state;
...@@ -175,8 +170,7 @@ static inline struct uvc_device *to_uvc(struct usb_function *f) ...@@ -175,8 +170,7 @@ static inline struct uvc_device *to_uvc(struct usb_function *f)
return container_of(f, struct uvc_device, func); return container_of(f, struct uvc_device, func);
} }
struct uvc_file_handle struct uvc_file_handle {
{
struct v4l2_fh vfh; struct v4l2_fh vfh;
struct uvc_video *device; struct uvc_video *device;
}; };
......
...@@ -53,8 +53,7 @@ uvc_send_response(struct uvc_device *uvc, struct uvc_request_data *data) ...@@ -53,8 +53,7 @@ uvc_send_response(struct uvc_device *uvc, struct uvc_request_data *data)
* V4L2 ioctls * V4L2 ioctls
*/ */
struct uvc_format struct uvc_format {
{
u8 bpp; u8 bpp;
u32 fcc; u32 fcc;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment