]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rust: macros: enable use of hyphens in module names
authorAnisse Astier <anisse@astier.eu>
Wed, 22 Jan 2025 13:39:52 +0000 (14:39 +0100)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 20 May 2025 04:34:04 +0000 (10:04 +0530)
commita4e3b76e4d5c265824e686661a79f75df09c4834
tree10fa9775870baf17f8601423b9ebaa9e06d54ab5
parentd01d7020560116876c6e39e056737b8f81f153e0
rust: macros: enable use of hyphens in module names

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 identifier cannot contain hyphens, so replace them with
underscores.

Signed-off-by: Anisse Astier <anisse@astier.eu>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
[ Viresh: Replace "-" with '-', minor commit log fix, rename variable and
  fix line length checkpatch warnings ]
Reviewed-by: Benno Lossin <lossin@kernel.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
rust/macros/module.rs