drm/msm/dp: Allow specifying connector_type per controller
authorBjorn Andersson <bjorn.andersson@linaro.org>
Sat, 16 Oct 2021 22:18:39 +0000 (15:18 -0700)
committerRob Clark <robdclark@chromium.org>
Mon, 18 Oct 2021 21:28:29 +0000 (14:28 -0700)
commit269e92d84cd223b3bc32b752a0bcf639c2cb3bd9
tree8141d225495a80ab61df8fc5421a79a9bac1e688
parent167dac97eb46c7b8a15b2195080e191bb0c9ce35
drm/msm/dp: Allow specifying connector_type per controller

As the following patches introduced support for multiple DP blocks in a
platform and some of those block might be eDP it becomes useful to be
able to specify the connector type per block.

Although there's only a single block at this point, the array of descs
and the search in dp_display_get_desc() are introduced here to simplify
the next patch, that does introduce support for multiple DP blocks.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/20211016221843.2167329-4-bjorn.andersson@linaro.org
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/dp/dp_display.c
drivers/gpu/drm/msm/dp/dp_display.h
drivers/gpu/drm/msm/dp/dp_drm.c