Re: [PATCH v2] rust: macros: enable use of hyphens in module names
From: Alice Ryhl
Date: Thu Jan 30 2025 - 06:51:49 EST
On Wed, Jan 22, 2025 at 2:39 PM Anisse Astier <anisse@xxxxxxxxx> wrote:
>
> Some modules might need naming that contains hyphens "-" to match the
> auto-probing by name in the platform devices that comes from the device
> tree.
>
> But rust identifiers cannot contain hyphens, so replace the module name
> by an underscore anywhere we'd use it as an identifier.
>
> Signed-off-by: Anisse Astier <anisse@xxxxxxxxx>
Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>