@@ -141,7 +141,8 @@ static struct usb_endpoint_descriptor uvc_fs_streaming_ep = {
141
141
.bEndpointAddress = USB_DIR_IN ,
142
142
.bmAttributes = USB_ENDPOINT_SYNC_ASYNC
143
143
| USB_ENDPOINT_XFER_ISOC ,
144
- /* The wMaxPacketSize and bInterval values will be initialized from
144
+ /*
145
+ * The wMaxPacketSize and bInterval values will be initialized from
145
146
* module parameters.
146
147
*/
147
148
};
@@ -152,7 +153,8 @@ static struct usb_endpoint_descriptor uvc_hs_streaming_ep = {
152
153
.bEndpointAddress = USB_DIR_IN ,
153
154
.bmAttributes = USB_ENDPOINT_SYNC_ASYNC
154
155
| USB_ENDPOINT_XFER_ISOC ,
155
- /* The wMaxPacketSize and bInterval values will be initialized from
156
+ /*
157
+ * The wMaxPacketSize and bInterval values will be initialized from
156
158
* module parameters.
157
159
*/
158
160
};
@@ -164,15 +166,17 @@ static struct usb_endpoint_descriptor uvc_ss_streaming_ep = {
164
166
.bEndpointAddress = USB_DIR_IN ,
165
167
.bmAttributes = USB_ENDPOINT_SYNC_ASYNC
166
168
| USB_ENDPOINT_XFER_ISOC ,
167
- /* The wMaxPacketSize and bInterval values will be initialized from
169
+ /*
170
+ * The wMaxPacketSize and bInterval values will be initialized from
168
171
* module parameters.
169
172
*/
170
173
};
171
174
172
175
static struct usb_ss_ep_comp_descriptor uvc_ss_streaming_comp = {
173
176
.bLength = sizeof (uvc_ss_streaming_comp ),
174
177
.bDescriptorType = USB_DT_SS_ENDPOINT_COMP ,
175
- /* The bMaxBurst, bmAttributes and wBytesPerInterval values will be
178
+ /*
179
+ * The bMaxBurst, bmAttributes and wBytesPerInterval values will be
176
180
* initialized from module parameters.
177
181
*/
178
182
};
@@ -234,7 +238,8 @@ uvc_function_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl)
234
238
if (le16_to_cpu (ctrl -> wLength ) > UVC_MAX_REQUEST_SIZE )
235
239
return - EINVAL ;
236
240
237
- /* Tell the complete callback to generate an event for the next request
241
+ /*
242
+ * Tell the complete callback to generate an event for the next request
238
243
* that will be enqueued by UVCIOC_SEND_RESPONSE.
239
244
*/
240
245
uvc -> event_setup_out = !(ctrl -> bRequestType & USB_DIR_IN );
@@ -500,7 +505,8 @@ uvc_copy_descriptors(struct uvc_device *uvc, enum usb_device_speed speed)
500
505
if (!uvc_control_desc || !uvc_streaming_cls )
501
506
return ERR_PTR (- ENODEV );
502
507
503
- /* Descriptors layout
508
+ /*
509
+ * Descriptors layout
504
510
*
505
511
* uvc_iad
506
512
* uvc_control_intf
@@ -597,8 +603,7 @@ uvc_function_bind(struct usb_configuration *c, struct usb_function *f)
597
603
uvcg_info (f , "%s()\n" , __func__ );
598
604
599
605
opts = fi_to_f_uvc_opts (f -> fi );
600
- /* Sanity check the streaming endpoint module parameters.
601
- */
606
+ /* Sanity check the streaming endpoint module parameters. */
602
607
opts -> streaming_interval = clamp (opts -> streaming_interval , 1U , 16U );
603
608
opts -> streaming_maxpacket = clamp (opts -> streaming_maxpacket , 1U , 3072U );
604
609
opts -> streaming_maxburst = min (opts -> streaming_maxburst , 15U );
@@ -611,7 +616,8 @@ uvc_function_bind(struct usb_configuration *c, struct usb_function *f)
611
616
opts -> streaming_maxpacket );
612
617
}
613
618
614
- /* Fill in the FS/HS/SS Video Streaming specific descriptors from the
619
+ /*
620
+ * Fill in the FS/HS/SS Video Streaming specific descriptors from the
615
621
* module parameters.
616
622
*
617
623
* NOTE: We assume that the user knows what they are doing and won't
@@ -895,7 +901,8 @@ static void uvc_function_unbind(struct usb_configuration *c,
895
901
896
902
uvcg_info (f , "%s()\n" , __func__ );
897
903
898
- /* If we know we're connected via v4l2, then there should be a cleanup
904
+ /*
905
+ * If we know we're connected via v4l2, then there should be a cleanup
899
906
* of the device from userspace either via UVC_EVENT_DISCONNECT or
900
907
* though the video device removal uevent. Allow some time for the
901
908
* application to close out before things get deleted.
@@ -912,7 +919,8 @@ static void uvc_function_unbind(struct usb_configuration *c,
912
919
v4l2_device_unregister (& uvc -> v4l2_dev );
913
920
914
921
if (uvc -> func_connected ) {
915
- /* Wait for the release to occur to ensure there are no longer any
922
+ /*
923
+ * Wait for the release to occur to ensure there are no longer any
916
924
* pending operations that may cause panics when resources are cleaned
917
925
* up.
918
926
*/
0 commit comments