diff options
author | Masahisa Kojima <masahisa.kojima@linaro.org> | 2023-11-07 08:40:52 +0300 |
---|---|---|
committer | Ard Biesheuvel <ardb@kernel.org> | 2023-12-11 13:19:18 +0300 |
commit | 6bb3703aa52c9b5bb9716cbeae7350247b675209 (patch) | |
tree | 71dd2e1cf128b3ce4d19aedb9040846a38a81c61 /drivers/firmware/efi | |
parent | cdb46a8aefbf7fd36772bb206aaaf7e45d7cf8f6 (diff) | |
download | linux-6bb3703aa52c9b5bb9716cbeae7350247b675209.tar.xz |
efi: expose efivar generic ops register function
This is a preparation for supporting efivar operations provided by other
than efi subsystem. Both register and unregister functions are exposed
so that non-efi subsystem can revert the efi generic operation.
Acked-by: Sumit Garg <sumit.garg@linaro.org>
Co-developed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'drivers/firmware/efi')
-rw-r--r-- | drivers/firmware/efi/efi.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c index 9d3910d1abe1..32a67c61c3b8 100644 --- a/drivers/firmware/efi/efi.c +++ b/drivers/firmware/efi/efi.c @@ -231,6 +231,18 @@ static void generic_ops_unregister(void) efivars_unregister(&generic_efivars); } +void efivars_generic_ops_register(void) +{ + generic_ops_register(); +} +EXPORT_SYMBOL_GPL(efivars_generic_ops_register); + +void efivars_generic_ops_unregister(void) +{ + generic_ops_unregister(); +} +EXPORT_SYMBOL_GPL(efivars_generic_ops_unregister); + #ifdef CONFIG_EFI_CUSTOM_SSDT_OVERLAYS #define EFIVAR_SSDT_NAME_MAX 16UL static char efivar_ssdt[EFIVAR_SSDT_NAME_MAX] __initdata; |