Commit a4e3b76e authored by Anisse Astier's avatar Anisse Astier Committed by Viresh Kumar
Browse files

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: default avatarAnisse Astier <anisse@astier.eu>
Reviewed-by: default avatarAlice Ryhl <aliceryhl@google.com>
[ Viresh: Replace "-" with '-', minor commit log fix, rename variable and
  fix line length checkpatch warnings ]
Reviewed-by: default avatarBenno Lossin <lossin@kernel.org>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent d01d7020
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment