Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee6a4d87 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Felipe Balbi
Browse files

usb: gadget: uvc: Fix coding style issues introduced by SS support



Let's keep the code consistent, people might want to read it.

Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: default avatarBhupesh Sharma <bhupesh.sharma@st.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 912ca429
Loading
Loading
Loading
Loading
+29 −29
Original line number Diff line number Diff line
@@ -174,12 +174,12 @@ static struct usb_endpoint_descriptor uvc_ss_control_ep __initdata = {
};

static struct usb_ss_ep_comp_descriptor uvc_ss_control_comp __initdata = {
	.bLength =		sizeof uvc_ss_control_comp,
	.bLength		= sizeof(uvc_ss_control_comp),
	.bDescriptorType	= USB_DT_SS_ENDPOINT_COMP,

	/* the following 3 values can be tweaked if necessary */
	/* .bMaxBurst =		0, */
	/* .bmAttributes =	0, */
	.bMaxBurst		= 0,
	.bmAttributes		= 0,
	.wBytesPerInterval	= cpu_to_le16(UVC_STATUS_MAX_PACKET_SIZE),
};

@@ -194,7 +194,7 @@ static struct usb_endpoint_descriptor uvc_ss_streaming_ep __initdata = {
};

static struct usb_ss_ep_comp_descriptor uvc_ss_streaming_comp = {
	.bLength =		sizeof uvc_ss_streaming_comp,
	.bLength		= sizeof(uvc_ss_streaming_comp),
	.bDescriptorType	= USB_DT_SS_ENDPOINT_COMP,

	/* the following 3 values can be tweaked if necessary */
+6 −6
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@
#include <linux/usb/composite.h>
#include <linux/usb/video.h>

extern int uvc_bind_config(struct usb_configuration *c,
int uvc_bind_config(struct usb_configuration *c,
		    const struct uvc_descriptor_header * const *fs_control,
		    const struct uvc_descriptor_header * const *hs_control,
		    const struct uvc_descriptor_header * const *fs_streaming,