OSDN Git Service

media: gadget: uvc: rename VFL_TYPE_GRABBER to _VIDEO
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 3 Feb 2020 11:41:10 +0000 (12:41 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 24 Feb 2020 15:52:45 +0000 (16:52 +0100)
'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>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/usb/gadget/function/f_uvc.c

index fb0a892..0b97126 100644 (file)
@@ -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;