summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2020-02-03 12:41:13 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-02-24 16:52:59 +0100
commite653614ee1832ce6bacc4f177e0495b5a501b798 (patch)
tree105ec2feef2a67d2f0e65f4f215e90b8d854e6be
parent0e17c50fcf6a9e11d616ab30e517b758751cb853 (diff)
downloadlinux-stable-e653614ee1832ce6bacc4f177e0495b5a501b798.tar.gz
linux-stable-e653614ee1832ce6bacc4f177e0495b5a501b798.tar.bz2
linux-stable-e653614ee1832ce6bacc4f177e0495b5a501b798.zip
media: staging/most: rename VFL_TYPE_GRABBER to _VIDEO
'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: Christian Gromm <christian.gromm@microchip.com> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-rw-r--r--drivers/staging/most/video/video.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/most/video/video.c b/drivers/staging/most/video/video.c
index d32ae49d617b..4cffc8fd62bd 100644
--- a/drivers/staging/most/video/video.c
+++ b/drivers/staging/most/video/video.c
@@ -74,7 +74,7 @@ static int comp_vdev_open(struct file *filp)
struct comp_fh *fh;
switch (vdev->vfl_type) {
- case VFL_TYPE_GRABBER:
+ case VFL_TYPE_VIDEO:
break;
default:
return -EINVAL;
@@ -424,7 +424,7 @@ static int comp_register_videodev(struct most_video_dev *mdev)
/* Register the v4l2 device */
video_set_drvdata(mdev->vdev, mdev);
- ret = video_register_device(mdev->vdev, VFL_TYPE_GRABBER, -1);
+ ret = video_register_device(mdev->vdev, VFL_TYPE_VIDEO, -1);
if (ret) {
v4l2_err(&mdev->v4l2_dev, "video_register_device failed (%d)\n",
ret);