Thread (11 messages) 11 messages, 5 authors, 2022-01-11

Re: [PATCH v2 3/5] drm/dp: Move DisplayPort helpers into separate helper module

From: Javier Martinez Canillas <javier@dowhile0.org>
Date: 2022-01-11 10:21:38
Also in: dri-devel, intel-gfx, linux-arm-msm, linux-rockchip, linux-tegra, nouveau

On Wed, Dec 15, 2021 at 12:12 PM Thomas Zimmermann [off-list ref] wrote:
Hi

Am 15.12.21 um 12:04 schrieb Jani Nikula:
quoted
On Wed, 15 Dec 2021, Thomas Zimmermann [off-list ref] wrote:
quoted
     * move DP helper code into dp/ (Jani)
I suggested adding the subdirectory, but I'm going to bikeshed the name,
which I didn't suggest.

$ find drivers/gpu/drm -mindepth 1 -maxdepth 1 -type d | wc -l
68

Assuming we move more of the drm modules to subdirectories, how are they
going to stand out from drivers?

I suggested drm_dp, which I understand results in tautology, but hey,
all the filenames under drm/ also have drm_*.[ch]. And I find that very
useful for git greps and other code archeology. With just the dp name,
you'd have to know and list all the drm subdirectories when looking up
stuff that's part of drm but not drivers.
I think we have enough filename prefixes already. drm/drm_dp/drm_dp_ is
just ridiculous.
Maybe what can be done is to just add a drivers/gpu/drm/core
subdirectory that would contain all the DRM core code ?

Then the dp helpers could be moved to drivers/gpu/drm/core/dp/drm_dp.c
for example. This would also make easy to differentiate the drm
modules from the drivers with just:

$ find drivers/gpu/drm -mindepth 1 -maxdepth 1 -type d -not -name core

Best regards,
Javier

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help