]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfdd6b1dc27033f05adb65f9decb2e6c5ae734661
tree226506e73f7dec7ab9c067505b276dfff4ed3ddd
parente4e818b7695dd416664b9f4de540086b13078abb
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