drm/msm/dp: Use the connector passed to dp_debug_get()
authorBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 15 Oct 2021 23:22:13 +0000 (16:22 -0700)
committerRob Clark <robdclark@chromium.org>
Fri, 15 Oct 2021 23:40:09 +0000 (16:40 -0700)
commit899b2608d8d4b675cb54a026a27e28b4e1bcbf61
tree226506e73f7dec7ab9c067505b276dfff4ed3ddd
parent1c8e5748fa349dacee0ed9d151c1fa76089e1d54
drm/msm/dp: Use the connector passed to dp_debug_get()

The debugfs code is provided an array of a single drm_connector. Then to
access the connector, the list of all connectors of the DRM device is
traversed and all non-DisplayPort connectors are skipped, to find the
one and only DisplayPort connector.

But as we move to support multiple DisplayPort controllers this will now
find multiple connectors and has no way to distinguish them.

Pass the single connector to dp_debug_get() and use this in the debugfs
functions instead, both to simplify the code and the support the
multiple instances.

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/20211015232213.1839472-1-bjorn.andersson@linaro.org
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/dp/dp_debug.c
drivers/gpu/drm/msm/dp/dp_debug.h
drivers/gpu/drm/msm/dp/dp_display.c