usb: gadget: Fix checkpatch error for braces
Subsystems (2)
PATCH 1/1 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 Anson Jacob <[email protected]>
--- drivers/usb/gadget/function/rndis.c | 3 +- drivers/usb/gadget/function/rndis.h | 51 ++++++++++++---------------------- drivers/usb/gadget/function/uvc.h | 18 ++++-------- drivers/usb/gadget/function/uvc_v4l2.c | 3 +- 4 files changed, 25 insertions(+), 50 deletions(-)
drivers/usb/gadget/function/rndis.c +1 -2
@@ -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 ,
drivers/usb/gadget/function/rndis.h +17 -34
149 lines not on this page · raw message
drivers/usb/gadget/function/uvc.h +6 -12
@@ -26,14 +26,12 @@#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_videounsigned 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; };
drivers/usb/gadget/function/uvc_v4l2.c +1 -2
@@ -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; };
Signature · 1 line
2.7.4