Messages in this thread | | | Date | Wed, 01 Mar 2023 18:19:41 +0100 | Subject | Re: [PATCH 3/3] rust: macros: Allow specifying multiple module aliases | From | "Vincenzo Palazzo" <> |
| |
> 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 <ojeda@kernel.org> > Signed-off-by: Miguel Ojeda <ojeda@kernel.org> > Co-developed-by: Finn Behrens <me@kloenk.dev> > Signed-off-by: Finn Behrens <me@kloenk.dev> > Co-developed-by: Sumera Priyadarsini <sylphrenadin@gmail.com> > Signed-off-by: Sumera Priyadarsini <sylphrenadin@gmail.com> > Signed-off-by: Asahi Lina <lina@asahilina.net> > ---
Reviewed-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
| |