]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9f0f3d23350f492b454b15b8c4cb301b3c13039e
tree26e5e5fb57ceb37de02eef2cdabca52c09c62dad
parentfdd6b1dc27033f05adb65f9decb2e6c5ae734661
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