disp: rotator: use VFL_TYPE_VIDEO instead of VFL_TYPE_GRABBER
VFL_TYPE_GRABBER is renamed with VFL_TYPE_VIDEO in v4l2 driver code. Add required changes to handle this in rotator driver. Change-Id: Ia4165295003867f661324bbf8a471fa1f27ddf72 Signed-off-by: Gaurav LNU <quic_glnu@quicinc.com> Signed-off-by: Vinod Polimera <quic_vpolimer@quicinc.com>
This commit is contained in:

gecommit door
Charishma Jerripothula

bovenliggende
985f8bc0da
commit
fbfef15361
@@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2015-2020, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
#define pr_fmt(fmt) "%s:%d: " fmt, __func__, __LINE__
|
||||
@@ -3479,13 +3479,13 @@ static int sde_rotator_probe(struct platform_device *pdev)
|
||||
vdev->release = video_device_release;
|
||||
vdev->v4l2_dev = &rot_dev->v4l2_dev;
|
||||
vdev->vfl_dir = VFL_DIR_M2M;
|
||||
vdev->vfl_type = VFL_TYPE_GRABBER;
|
||||
vdev->vfl_type = VFL_TYPE_VIDEO;
|
||||
vdev->device_caps = V4L2_CAP_STREAMING | V4L2_CAP_VIDEO_M2M |
|
||||
V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_VIDEO_CAPTURE;
|
||||
|
||||
strlcpy(vdev->name, SDE_ROTATOR_DRV_NAME, sizeof(vdev->name));
|
||||
|
||||
ret = video_register_device(vdev, VFL_TYPE_GRABBER,
|
||||
ret = video_register_device(vdev, VFL_TYPE_VIDEO,
|
||||
SDE_ROTATOR_BASE_DEVICE_NUMBER);
|
||||
if (ret < 0) {
|
||||
SDEDEV_ERR(&pdev->dev, "fail register video device %d\n",
|
||||
|
Verwijs in nieuw issue
Block a user