OSDN Git Service

drm/msm/dp: Stop using DP id as index in desc
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 7 Dec 2022 22:00:05 +0000 (14:00 -0800)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sun, 8 Jan 2023 21:51:12 +0000 (23:51 +0200)
commit5d417b40114687cc74fed03d6dca952eb84be878
treedd7ae5c18de34ae3e428300b4b3c966d64a6c5ed
parentb6f8c4debc0035a1a9096cf016bbd04c31dd78b0
drm/msm/dp: Stop using DP id as index in desc

In the SC8280XP platform there are two identical MDSS instances, each
with the same set of DisplayPort instances, at different addresses.

By not relying on the index to define the instance id it's possible to
describe them both in the same table and hence have a single compatible.

While at it, flatten the cfg/desc structure so that the match data is
just an array of descs.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Reviewed-by: Kuogee Hsieh <quic_khsieh@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/514397/
Link: https://lore.kernel.org/r/20221207220012.16529-6-quic_bjorande@quicinc.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/dp/dp_display.c