mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-25 02:32:08 +03:00
media: Use conftest to find if enum v4l2_async_match_type present
Use conftest to determine if the 'enum v4l2_async_match_type'
has the "TYPE" in its name.
In Linux 6.5, with change commit 7a2259fc5182b ("media: v4l: async:
Rename V4L2_ASYNC_MATCH_ macros, add TYPE_"), the enum names has "TYPE" also.
Bug 4346767
Change-Id: I863da8496337d4003188b654673c67cdb3eef155
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3028745
Reviewed-by: Shardar Mohammed <smohammed@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
234ba9c75f
commit
5f77d6d51a
@@ -480,7 +480,7 @@ static int tegra_vi_graph_parse_one(struct tegra_channel *chan,
|
||||
}
|
||||
|
||||
entity->node = remote;
|
||||
#if defined(NV_V4L2_ASYNC_MATCH_FWNODE_RENAME)
|
||||
#if defined(NV_V4L2_ASYNC_MATCH_TYPE_ENUM_PRESENT) /* Linux 6.5 */
|
||||
entity->asd.match.type = V4L2_ASYNC_MATCH_TYPE_FWNODE;
|
||||
#else
|
||||
entity->asd.match_type = V4L2_ASYNC_MATCH_FWNODE;
|
||||
@@ -641,7 +641,7 @@ int tegra_vi_graph_init(struct tegra_mc_vi *vi)
|
||||
|
||||
/* Add the remote entity of this endpoint */
|
||||
entity->node = remote;
|
||||
#if defined(NV_V4L2_ASYNC_MATCH_FWNODE_RENAME)
|
||||
#if defined(NV_V4L2_ASYNC_MATCH_TYPE_ENUM_PRESENT) /* Linux 6.5 */
|
||||
entity->asd.match.type = V4L2_ASYNC_MATCH_TYPE_FWNODE;
|
||||
#else
|
||||
entity->asd.match_type = V4L2_ASYNC_MATCH_FWNODE;
|
||||
|
||||
Reference in New Issue
Block a user