public inbox for nouveau@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Danilo Krummrich" <dakr@kernel.org>
To: "Cheng-Yang Chou" <yphbchou0911@gmail.com>
Cc: Alice Ryhl <aliceryhl@google.com>,
	Alexandre Courbot <acourbot@nvidia.com>,
	Simona Vetter <simona@ffwll.ch>, Gary Guo <gary@garyguo.net>,
	nouveau@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
	linux-kernel@vger.kernel.org, jserv@ccns.ncku.edu.tw
Subject: Re: [PATCH] gpu: nova: rename drivers to use kebab-case convention
Date: Thu, 12 Mar 2026 20:16:13 +0100	[thread overview]
Message-ID: <DH11MBCZFQIJ.33U3GFVI1HFZF@kernel.org> (raw)
In-Reply-To: <abMJsUpvcUrITCVi@eric-acer>

On Thu Mar 12, 2026 at 7:45 PM CET, Cheng-Yang Chou wrote:
> Hi John,
>
> On Tue, Mar 10, 2026 at 06:34:51PM -0700, John Hubbard wrote:
>> On 3/9/26 11:24 PM, Cheng-Yang Chou wrote:
>> > -    name: c"nova",
>> > +    name: c"nova-drm",
>> >      desc: c"Nvidia Graphics",
>> 
>> hmm, as long as we are fooling around with names here, I see that
>> this should be "NVIDIA Graphics and Compute", really.

SGTM.

>> >  kernel::module_auxiliary_driver! {
>> >      type: NovaDriver,
>> > -    name: "Nova",
>> > +    name: "nova-drm",
>> 
>> Well, but now it is out of sync with the file name: nova.rs.
>> 
>> You should change both, or neither, I'm thinking.
>
> I think renaming the file to nova_drm.rs would better reflect the
> driver's identity now that the module name is nova-drm, making it easier
> for readers to associate the source file with the driver.
>
> Would that work for you?

I think the module name should ideally match the directoy name, i.e. we have

	drivers/gpu/nova-core/

with the module name "nova-core" and

	drivers/gpu/drm/nova/

with the module name "nova-drm".

The reason why this is not .../nova-drm/ already is that I figured it would be a
bit redundant given that "drm" is already part of the path.

While I don't mind changing this, I wonder what this would mean for the
Kconfig, CONFIG_DRM_NOVA_DRM? :)

  parent reply	other threads:[~2026-03-12 19:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-10  6:24 [PATCH] gpu: nova: rename drivers to use kebab-case convention Cheng-Yang Chou
2026-03-10 20:41 ` Timur Tabi
2026-03-11  1:34 ` John Hubbard
2026-03-12 18:45   ` Cheng-Yang Chou
2026-03-12 18:54     ` John Hubbard
2026-03-12 19:16     ` Danilo Krummrich [this message]
2026-03-12 19:21       ` John Hubbard
2026-03-12 19:48         ` Danilo Krummrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DH11MBCZFQIJ.33U3GFVI1HFZF@kernel.org \
    --to=dakr@kernel.org \
    --cc=acourbot@nvidia.com \
    --cc=aliceryhl@google.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=gary@garyguo.net \
    --cc=jserv@ccns.ncku.edu.tw \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nouveau@lists.freedesktop.org \
    --cc=simona@ffwll.ch \
    --cc=yphbchou0911@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox