diff options
author | Asahi Lina <[email protected]> | 2023-03-23 21:35:10 +0900 |
---|---|---|
committer | Miguel Ojeda <[email protected]> | 2023-04-10 23:55:43 +0200 |
commit | 39867fec2855cf37e5542dc6a972bce8ee191a9c (patch) | |
tree | aee40218f3005238c7a9eb71de95ff307b95e4b9 /rust/kernel | |
parent | 318c3cc8e107c2b36108132057ca90d0d56d1bd9 (diff) |
rust: macros: Allow specifying multiple module aliases
Modules can (and usually do) have multiple alias tags, in order to
specify multiple possible device matches for autoloading. Allow this by
changing the alias ModuleInfo field to an Option<Vec<String>>.
Note: For normal device IDs this is autogenerated by modpost (which is
not properly integrated with Rust support yet), so it is useful to be
able to manually add device match aliases for now, and should still be
useful in the future for corner cases that modpost does not handle.
This pulls in the expect_group() helper from the rfl/rust branch
(with credit to authors).
Co-developed-by: Miguel Ojeda <[email protected]>
Signed-off-by: Miguel Ojeda <[email protected]>
Co-developed-by: Finn Behrens <[email protected]>
Signed-off-by: Finn Behrens <[email protected]>
Co-developed-by: Sumera Priyadarsini <[email protected]>
Signed-off-by: Sumera Priyadarsini <[email protected]>
Reviewed-by: Vincenzo Palazzo <[email protected]>
Signed-off-by: Asahi Lina <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions