aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/webcam.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2012-09-10 09:01:53 -0400
committerFelipe Balbi <balbi@ti.com>2012-09-10 09:12:59 -0400
commit7d16e8d3eb704f5f6eb5a271d5758b495634e8e6 (patch)
tree146c2f02239fc5df53976092384bc74ed29f7c02 /drivers/usb/gadget/webcam.c
parent3b4a3fc0ba83265c0bfcfdfc3416e65e47441747 (diff)
usb: gadget: push VID/PID/USB BCD module option into gadgets
This patch moves the module options idVendor, idProduct and bcdDevice from composite.c into each gadgets. This ensures compatibility with current gadgets and removes the global variable which brings me step closer towards composite.c in libcomposite Acked-by: Michal Nazarewicz <mina86@mina86.com> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/webcam.c')
-rw-r--r--drivers/usb/gadget/webcam.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/webcam.c b/drivers/usb/gadget/webcam.c
index d44a4510a65a..306006419f38 100644
--- a/drivers/usb/gadget/webcam.c
+++ b/drivers/usb/gadget/webcam.c
@@ -30,6 +30,7 @@
30#include "uvc_v4l2.c" 30#include "uvc_v4l2.c"
31#include "f_uvc.c" 31#include "f_uvc.c"
32 32
33USB_GADGET_COMPOSITE_OPTIONS();
33/* -------------------------------------------------------------------------- 34/* --------------------------------------------------------------------------
34 * Device descriptor 35 * Device descriptor
35 */ 36 */
@@ -370,6 +371,7 @@ webcam_bind(struct usb_composite_dev *cdev)
370 webcam_config_bind)) < 0) 371 webcam_config_bind)) < 0)
371 goto error; 372 goto error;
372 373
374 usb_composite_overwrite_options(cdev, &coverwrite);
373 INFO(cdev, "Webcam Video Gadget\n"); 375 INFO(cdev, "Webcam Video Gadget\n");
374 return 0; 376 return 0;
375 377