drm/msm/dp: Simplify the dp_debug debugfs show function
authorBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 7 Oct 2021 19:02:11 +0000 (12:02 -0700)
committerRob Clark <robdclark@chromium.org>
Fri, 15 Oct 2021 23:48:19 +0000 (16:48 -0700)
commiteea8f024dd5320256f7bbaa573ab92eb2aa5078e
tree26e5e5fb57ceb37de02eef2cdabca52c09c62dad
parent899b2608d8d4b675cb54a026a27e28b4e1bcbf61
drm/msm/dp: Simplify the dp_debug debugfs show function

The "dp_debug" show function allocates a buffer and piecemeal appends
line by line, checking for buffer overflows etc.

Migrate the function to seq_file, to remove all the extra book keeping
and simplify the function.

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