Skip to content
Snippets Groups Projects
Commit f4fdb17c authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

modpost: introduce module_alias_printf() helper


The generic ->do_entry() handler is currently limited to returning
a single alias string.

However, this is not flexible enough for several subsystems, which
currently require their own implementations:

 - do_usb_table()
 - do_of_table()
 - do_pnp_device_entry()
 - do_pnp_card_entries()

This commit introduces a helper function so that these special cases can
add multiple MODULE_ALIAS() and then migrate to the generic framework.

Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent b7bca42d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment