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)
commit167dac97eb46c7b8a15b2195080e191bb0c9ce35
tree70e1d8e920ba7dad1503551ff7bfb6695859734c
parentd624e50aa3c16283e2ee9f6644d9155697347ab5
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