Message ID | 20210628155311.16762-4-m.grzeschik@pengutronix.de (mailing list archive) |
---|---|
State | Accepted |
Commit | b9b82d3d0dbc45ee6b4817c7a7275a65152301f5 |
Headers | show |
Series | usb: gadget: uvc: improve uvc gadget performance | expand |
diff --git a/drivers/usb/gadget/function/f_uvc.c b/drivers/usb/gadget/function/f_uvc.c index f48a00e497945..9d87c0fb8f92e 100644 --- a/drivers/usb/gadget/function/f_uvc.c +++ b/drivers/usb/gadget/function/f_uvc.c @@ -418,6 +418,7 @@ uvc_register_video(struct uvc_device *uvc) /* TODO reference counting. */ uvc->vdev.v4l2_dev = &uvc->v4l2_dev; + uvc->vdev.v4l2_dev->dev = &cdev->gadget->dev; uvc->vdev.fops = &uvc_v4l2_fops; uvc->vdev.ioctl_ops = &uvc_v4l2_ioctl_ops; uvc->vdev.release = video_device_release_empty;
The v4l2_dev has no corresponding device to it. We will point it to the gadget's dev. Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> --- v1 -> v2: Extracted from previous bigger patch v2 -> v3: - --- drivers/usb/gadget/function/f_uvc.c | 1 + 1 file changed, 1 insertion(+)