]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
usb: gadget: Fix checkpatch error for braces
authorAnson Jacob <ansonjacob.aj@gmail.com>
Sat, 12 Nov 2016 00:07:01 +0000 (19:07 -0500)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 18 Nov 2016 11:54:41 +0000 (13:54 +0200)
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: Anson Jacob <ansonjacob.aj@gmail.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/rndis.c
drivers/usb/gadget/function/rndis.h
drivers/usb/gadget/function/uvc.h
drivers/usb/gadget/function/uvc_v4l2.c

index 766c328c15c0d963ee8c7b8a183358334d2c33c0..a3b5e468b116e1122edfe6c16f308467ed0c879d 100644 (file)
@@ -80,8 +80,7 @@ static const struct file_operations rndis_proc_fops;
 #endif /* CONFIG_USB_GADGET_DEBUG_FILES */
 
 /* supported OIDs */
-static const u32 oid_supported_list[] =
-{
+static const u32 oid_supported_list[] = {
        /* the general stuff */
        RNDIS_OID_GEN_SUPPORTED_LIST,
        RNDIS_OID_GEN_HARDWARE_STATUS,
index ef92eb66d8adf91fac1cc7dea85490ebc2f0895a..21e0430ffb98608bb6e0ab85ae9d3d51b508428a 100644 (file)
@@ -22,8 +22,7 @@
 #define RNDIS_MAXIMUM_FRAME_SIZE       1518
 #define RNDIS_MAX_TOTAL_SIZE           1558
 
-typedef struct rndis_init_msg_type
-{
+typedef struct rndis_init_msg_type {
        __le32  MessageType;
        __le32  MessageLength;
        __le32  RequestID;
@@ -32,8 +31,7 @@ typedef struct rndis_init_msg_type
        __le32  MaxTransferSize;
 } rndis_init_msg_type;
 
-typedef struct rndis_init_cmplt_type
-{
+typedef struct rndis_init_cmplt_type {
        __le32  MessageType;
        __le32  MessageLength;
        __le32  RequestID;
@@ -49,15 +47,13 @@ typedef struct rndis_init_cmplt_type
        __le32  AFListSize;
 } rndis_init_cmplt_type;
 
-typedef struct rndis_halt_msg_type
-{
+typedef struct rndis_halt_msg_type {
        __le32  MessageType;
        __le32  MessageLength;
        __le32  RequestID;
 } rndis_halt_msg_type;
 
-typedef struct rndis_query_msg_type
-{
+typedef struct rndis_query_msg_type {
        __le32  MessageType;
        __le32  MessageLength;
        __le32  RequestID;
@@ -67,8 +63,7 @@ typedef struct rndis_query_msg_type
        __le32  DeviceVcHandle;
 } rndis_query_msg_type;
 
-typedef struct rndis_query_cmplt_type
-{
+typedef struct rndis_query_cmplt_type {
        __le32  MessageType;
        __le32  MessageLength;
        __le32  RequestID;
@@ -77,8 +72,7 @@ typedef struct rndis_query_cmplt_type
        __le32  InformationBufferOffset;
 } rndis_query_cmplt_type;
 
-typedef struct rndis_set_msg_type
-{
+typedef struct rndis_set_msg_type {
        __le32  MessageType;
        __le32  MessageLength;
        __le32  RequestID;
@@ -88,31 +82,27 @@ typedef struct rndis_set_msg_type
        __le32  DeviceVcHandle;
 } rndis_set_msg_type;
 
-typedef struct rndis_set_cmplt_type
-{
+typedef struct rndis_set_cmplt_type {
        __le32  MessageType;
        __le32  MessageLength;
        __le32  RequestID;
        __le32  Status;
 } rndis_set_cmplt_type;
 
-typedef struct rndis_reset_msg_type
-{
+typedef struct rndis_reset_msg_type {
        __le32  MessageType;
        __le32  MessageLength;
        __le32  Reserved;
 } rndis_reset_msg_type;
 
-typedef struct rndis_reset_cmplt_type
-{
+typedef struct rndis_reset_cmplt_type {
        __le32  MessageType;
        __le32  MessageLength;
        __le32  Status;
        __le32  AddressingReset;
 } rndis_reset_cmplt_type;
 
-typedef struct rndis_indicate_status_msg_type
-{
+typedef struct rndis_indicate_status_msg_type {
        __le32  MessageType;
        __le32  MessageLength;
        __le32  Status;
@@ -120,23 +110,20 @@ typedef struct rndis_indicate_status_msg_type
        __le32  StatusBufferOffset;
 } rndis_indicate_status_msg_type;
 
-typedef struct rndis_keepalive_msg_type
-{
+typedef struct rndis_keepalive_msg_type {
        __le32  MessageType;
        __le32  MessageLength;
        __le32  RequestID;
 } rndis_keepalive_msg_type;
 
-typedef struct rndis_keepalive_cmplt_type
-{
+typedef struct rndis_keepalive_cmplt_type {
        __le32  MessageType;
        __le32  MessageLength;
        __le32  RequestID;
        __le32  Status;
 } rndis_keepalive_cmplt_type;
 
-struct rndis_packet_msg_type
-{
+struct rndis_packet_msg_type {
        __le32  MessageType;
        __le32  MessageLength;
        __le32  DataOffset;
@@ -150,8 +137,7 @@ struct rndis_packet_msg_type
        __le32  Reserved;
 } __attribute__ ((packed));
 
-struct rndis_config_parameter
-{
+struct rndis_config_parameter {
        __le32  ParameterNameOffset;
        __le32  ParameterNameLength;
        __le32  ParameterType;
@@ -160,23 +146,20 @@ struct rndis_config_parameter
 };
 
 /* implementation specific */
-enum rndis_state
-{
+enum rndis_state {
        RNDIS_UNINITIALIZED,
        RNDIS_INITIALIZED,
        RNDIS_DATA_INITIALIZED,
 };
 
-typedef struct rndis_resp_t
-{
+typedef struct rndis_resp_t {
        struct list_head        list;
        u8                      *buf;
        u32                     length;
        int                     send;
 } rndis_resp_t;
 
-typedef struct rndis_params
-{
+typedef struct rndis_params {
        int                     confignr;
        u8                      used;
        u16                     saved_filter;
index 7d3bb6272e063a9bbb3f8e504c1447c5ab829094..11d70dead32b67bb0d2218060303cec352a3415d 100644 (file)
 #define UVC_EVENT_DATA                 (V4L2_EVENT_PRIVATE_START + 5)
 #define UVC_EVENT_LAST                 (V4L2_EVENT_PRIVATE_START + 5)
 
-struct uvc_request_data
-{
+struct uvc_request_data {
        __s32 length;
        __u8 data[60];
 };
 
-struct uvc_event
-{
+struct uvc_event {
        union {
                enum usb_device_speed speed;
                struct usb_ctrlrequest req;
@@ -104,8 +102,7 @@ extern unsigned int uvc_gadget_trace_param;
  * Structures
  */
 
-struct uvc_video
-{
+struct uvc_video {
        struct usb_ep *ep;
 
        /* Frame parameters */
@@ -134,15 +131,13 @@ struct uvc_video
        unsigned int fid;
 };
 
-enum uvc_state
-{
+enum uvc_state {
        UVC_STATE_DISCONNECTED,
        UVC_STATE_CONNECTED,
        UVC_STATE_STREAMING,
 };
 
-struct uvc_device
-{
+struct uvc_device {
        struct video_device vdev;
        struct v4l2_device v4l2_dev;
        enum uvc_state state;
@@ -175,8 +170,7 @@ static inline struct uvc_device *to_uvc(struct usb_function *f)
        return container_of(f, struct uvc_device, func);
 }
 
-struct uvc_file_handle
-{
+struct uvc_file_handle {
        struct v4l2_fh vfh;
        struct uvc_video *device;
 };
index f4ccbd56f4d254c42112f3ae89949aefe6d5c8d1..3e22b45687d37d8f256f0f1524af0e390434bf14 100644 (file)
@@ -53,8 +53,7 @@ uvc_send_response(struct uvc_device *uvc, struct uvc_request_data *data)
  * V4L2 ioctls
  */
 
-struct uvc_format
-{
+struct uvc_format {
        u8 bpp;
        u32 fcc;
 };