OSDN Git Service

media: rename VFL_TYPE_GRABBER to _VIDEO
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 3 Feb 2020 11:41:09 +0000 (12:41 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 24 Feb 2020 15:52:39 +0000 (16:52 +0100)
commit238e4a5baa361256ae1641ad9455bb2bb359273f
treecbff634dd70eb4a3b1a5faee4f249743f7a31e83
parentcc62c74749a3cacfac126a6f6dfc2f40bd58a79e
media: rename VFL_TYPE_GRABBER to _VIDEO

We currently have the following devnode types:

enum vfl_devnode_type {
        VFL_TYPE_GRABBER        = 0,
        VFL_TYPE_VBI,
        VFL_TYPE_RADIO,
        VFL_TYPE_SUBDEV,
        VFL_TYPE_SDR,
        VFL_TYPE_TOUCH,
        VFL_TYPE_MAX /* Shall be the last one */
};

They all make sense, except for the first: GRABBER really refers to /dev/videoX
devices, which can be capture, output or m2m, so 'grabber' doesn't even refer to
their function anymore.

Let's call a spade a spade and rename this to VFL_TYPE_VIDEO.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Documentation/media/kapi/v4l2-dev.rst
Documentation/translations/zh_CN/video4linux/v4l2-framework.txt
drivers/media/v4l2-core/v4l2-dev.c
drivers/media/v4l2-core/v4l2-ioctl.c
include/media/v4l2-dev.h
samples/v4l/v4l2-pci-skeleton.c