aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/f_uvc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/f_uvc.c')
-rw-r--r--drivers/usb/gadget/f_uvc.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/usb/gadget/f_uvc.c b/drivers/usb/gadget/f_uvc.c
index 38dcedddc52c..5f91c7a59946 100644
--- a/drivers/usb/gadget/f_uvc.c
+++ b/drivers/usb/gadget/f_uvc.c
@@ -156,8 +156,6 @@ static struct usb_endpoint_descriptor uvc_fs_streaming_ep __initdata = {
156 /* The wMaxPacketSize and bInterval values will be initialized from 156 /* The wMaxPacketSize and bInterval values will be initialized from
157 * module parameters. 157 * module parameters.
158 */ 158 */
159 .wMaxPacketSize = 0,
160 .bInterval = 0,
161}; 159};
162 160
163static struct usb_endpoint_descriptor uvc_hs_streaming_ep __initdata = { 161static struct usb_endpoint_descriptor uvc_hs_streaming_ep __initdata = {
@@ -169,8 +167,6 @@ static struct usb_endpoint_descriptor uvc_hs_streaming_ep __initdata = {
169 /* The wMaxPacketSize and bInterval values will be initialized from 167 /* The wMaxPacketSize and bInterval values will be initialized from
170 * module parameters. 168 * module parameters.
171 */ 169 */
172 .wMaxPacketSize = 0,
173 .bInterval = 0,
174}; 170};
175 171
176static struct usb_endpoint_descriptor uvc_ss_streaming_ep __initdata = { 172static struct usb_endpoint_descriptor uvc_ss_streaming_ep __initdata = {
@@ -183,17 +179,14 @@ static struct usb_endpoint_descriptor uvc_ss_streaming_ep __initdata = {
183 /* The wMaxPacketSize and bInterval values will be initialized from 179 /* The wMaxPacketSize and bInterval values will be initialized from
184 * module parameters. 180 * module parameters.
185 */ 181 */
186 .wMaxPacketSize = 0,
187 .bInterval = 0,
188}; 182};
189 183
190static struct usb_ss_ep_comp_descriptor uvc_ss_streaming_comp __initdata = { 184static struct usb_ss_ep_comp_descriptor uvc_ss_streaming_comp __initdata = {
191 .bLength = sizeof(uvc_ss_streaming_comp), 185 .bLength = sizeof(uvc_ss_streaming_comp),
192 .bDescriptorType = USB_DT_SS_ENDPOINT_COMP, 186 .bDescriptorType = USB_DT_SS_ENDPOINT_COMP,
193 /* The following 3 values can be tweaked if necessary. */ 187 /* The bMaxBurst, bmAttributes and wBytesPerInterval values will be
194 .bMaxBurst = 0, 188 * initialized from module parameters.
195 .bmAttributes = 0, 189 */
196 .wBytesPerInterval = cpu_to_le16(1024),
197}; 190};
198 191
199static const struct usb_descriptor_header * const uvc_fs_streaming[] = { 192static const struct usb_descriptor_header * const uvc_fs_streaming[] = {