Message ID | 20200203114119.1177490-3-hverkuil-cisco@xs4all.nl (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Rename VFL_TYPE_GRABBER to _VIDEO | expand |
Hi Hans, Thank you for the patch. On Mon, Feb 03, 2020 at 12:41:10PM +0100, Hans Verkuil wrote: > 'GRABBER' is a weird name, all other types map to the /dev > device names. Rename to 'VIDEO' to be consistent with the > other types. > > Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> > Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> > --- > drivers/usb/gadget/function/f_uvc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/gadget/function/f_uvc.c b/drivers/usb/gadget/function/f_uvc.c > index fb0a892687c0..0b9712616455 100644 > --- a/drivers/usb/gadget/function/f_uvc.c > +++ b/drivers/usb/gadget/function/f_uvc.c > @@ -428,7 +428,7 @@ uvc_register_video(struct uvc_device *uvc) > > video_set_drvdata(&uvc->vdev, uvc); > > - ret = video_register_device(&uvc->vdev, VFL_TYPE_GRABBER, -1); > + ret = video_register_device(&uvc->vdev, VFL_TYPE_VIDEO, -1); > if (ret < 0) > return ret; >
diff --git a/drivers/usb/gadget/function/f_uvc.c b/drivers/usb/gadget/function/f_uvc.c index fb0a892687c0..0b9712616455 100644 --- a/drivers/usb/gadget/function/f_uvc.c +++ b/drivers/usb/gadget/function/f_uvc.c @@ -428,7 +428,7 @@ uvc_register_video(struct uvc_device *uvc) video_set_drvdata(&uvc->vdev, uvc); - ret = video_register_device(&uvc->vdev, VFL_TYPE_GRABBER, -1); + ret = video_register_device(&uvc->vdev, VFL_TYPE_VIDEO, -1); if (ret < 0) return ret;
'GRABBER' is a weird name, all other types map to the /dev device names. Rename to 'VIDEO' to be consistent with the other types. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com> --- drivers/usb/gadget/function/f_uvc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)