media: Use conftest to find if struct v4l2_async_connection present

Use conftest to find if struct v4l2_async_connection present
or not. The struct v4l2_async_subdev is renamed to struct
v4l2_async_connection with change commit adb2dcd5f2d49d3
("media: v4l: async: Rename v4l2_async_subdev as v4l2_async_connection")
in Linux 6.5

Bug 4346767

Change-Id: Id15c8ce747a8642b7831b79f45e15f26e95744b2
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3028744
(cherry picked from commit 234ba9c75f)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3053706
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Laxman Dewangan
2023-12-05 18:51:47 +00:00
committed by mobile promotions
parent 5b4a093e24
commit afe9bdc7c0
5 changed files with 28 additions and 8 deletions

View File

@@ -2,12 +2,14 @@
/*
* Tegra Media controller common APIs
*
* Copyright (c) 2012-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* Copyright (c) 2012-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
*/
#ifndef __CAMERA_MC_COMMON_H__
#define __CAMERA_MC_COMMON_H__
#include <nvidia/conftest.h>
#include <media/media-device.h>
#include <media/media-entity.h>
#include <media/sensor_common.h>
@@ -94,7 +96,7 @@ struct tegra_vi_graph_entity {
struct device_node *node;
struct media_entity *entity;
#if defined(NV_V4L2_ASYNC_SUBDEV_RENAME)
#if defined(NV_V4L2_ASYNC_CONNECTION_STRUCT_PRESENT) /* Linux 6.5 */
struct v4l2_async_connection asd;
#else
struct v4l2_async_subdev asd;