usb: gadget: uvc: Remove unneeded endpoint descriptor fields initialization
The streaming endpoint bandwidth parameters are computed are runtime from module parameters. Remove the corresponding static initializers. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
8b125df5b2
commit
dbbafe666c
@ -156,8 +156,6 @@ static struct usb_endpoint_descriptor uvc_fs_streaming_ep __initdata = {
|
|||||||
/* The wMaxPacketSize and bInterval values will be initialized from
|
/* The wMaxPacketSize and bInterval values will be initialized from
|
||||||
* module parameters.
|
* module parameters.
|
||||||
*/
|
*/
|
||||||
.wMaxPacketSize = 0,
|
|
||||||
.bInterval = 0,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct usb_endpoint_descriptor uvc_hs_streaming_ep __initdata = {
|
static struct usb_endpoint_descriptor uvc_hs_streaming_ep __initdata = {
|
||||||
@ -169,8 +167,6 @@ static struct usb_endpoint_descriptor uvc_hs_streaming_ep __initdata = {
|
|||||||
/* The wMaxPacketSize and bInterval values will be initialized from
|
/* The wMaxPacketSize and bInterval values will be initialized from
|
||||||
* module parameters.
|
* module parameters.
|
||||||
*/
|
*/
|
||||||
.wMaxPacketSize = 0,
|
|
||||||
.bInterval = 0,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct usb_endpoint_descriptor uvc_ss_streaming_ep __initdata = {
|
static struct usb_endpoint_descriptor uvc_ss_streaming_ep __initdata = {
|
||||||
@ -183,17 +179,14 @@ static struct usb_endpoint_descriptor uvc_ss_streaming_ep __initdata = {
|
|||||||
/* The wMaxPacketSize and bInterval values will be initialized from
|
/* The wMaxPacketSize and bInterval values will be initialized from
|
||||||
* module parameters.
|
* module parameters.
|
||||||
*/
|
*/
|
||||||
.wMaxPacketSize = 0,
|
|
||||||
.bInterval = 0,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct usb_ss_ep_comp_descriptor uvc_ss_streaming_comp __initdata = {
|
static struct usb_ss_ep_comp_descriptor uvc_ss_streaming_comp __initdata = {
|
||||||
.bLength = sizeof(uvc_ss_streaming_comp),
|
.bLength = sizeof(uvc_ss_streaming_comp),
|
||||||
.bDescriptorType = USB_DT_SS_ENDPOINT_COMP,
|
.bDescriptorType = USB_DT_SS_ENDPOINT_COMP,
|
||||||
/* The following 3 values can be tweaked if necessary. */
|
/* The bMaxBurst, bmAttributes and wBytesPerInterval values will be
|
||||||
.bMaxBurst = 0,
|
* initialized from module parameters.
|
||||||
.bmAttributes = 0,
|
*/
|
||||||
.wBytesPerInterval = cpu_to_le16(1024),
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct usb_descriptor_header * const uvc_fs_streaming[] = {
|
static const struct usb_descriptor_header * const uvc_fs_streaming[] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user