drm/amd/display: Add function to get the pipe from the stream context
authorLeo (Hanghong) Ma <hanghong.ma@amd.com>
Thu, 10 Mar 2022 22:20:35 +0000 (17:20 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Mar 2022 18:41:10 +0000 (14:41 -0400)
commit10499e4055949e4682d2e7c428365175e99e0800
treee658f15e156fd0300397542d754e4d58ca4f027a
parenta0248d543bbf2a977e7e6d9966ce8d96f6e5c358
drm/amd/display: Add function to get the pipe from the stream context

[Why]
We need a helper function in dc to grab the pipe from the stream
context.

[How]
Add it.

Reviewed-by: Martin Leung <Martin.Leung@amd.com>
Acked-by: Agustin Gutierrez <agustin.gutierrez@amd.com>
Signed-off-by: Leo (Hanghong) Ma <hanghong.ma@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
drivers/gpu/drm/amd/display/dc/dc_stream.h