]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/dp: Modify prototype of encoder based API
authorBjorn Andersson <bjorn.andersson@linaro.org>
Sat, 16 Oct 2021 22:18:38 +0000 (15:18 -0700)
committerRob Clark <robdclark@chromium.org>
Mon, 18 Oct 2021 21:28:29 +0000 (14:28 -0700)
commit2807250deaa32be8fe32f199e1d3c32c0adbffb3
tree70e1d8e920ba7dad1503551ff7bfb6695859734c
parent383b6b0ceb3d1e986afb1eb66ee2332459116d19
drm/msm/dp: Modify prototype of encoder based API

Functions in the DisplayPort code that relates to individual instances
(encoders) are passed both the struct msm_dp and the struct drm_encoder.
But in a situation where multiple DP instances would exist this means
that the caller need to resolve which struct msm_dp relates to the
struct drm_encoder at hand.

Store a reference to the struct msm_dp associated with each
dpu_encoder_virt to allow the particular instance to be associate with
the encoder in the following patch.

Reviewed-by: Abhinav Kumar <abhinavk@codeaurora.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20211016221843.2167329-3-bjorn.andersson@linaro.org
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c