]> git.baikalelectronics.ru Git - kernel.git/commit
media: atomisp_gmin_platform: stop abusing efivar API
authorArd Biesheuvel <ardb@kernel.org>
Mon, 20 Jun 2022 10:03:50 +0000 (12:03 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Mon, 20 Jun 2022 10:43:25 +0000 (12:43 +0200)
commitde4f39e1cd0a2ccb94031e06cbb4e135248bd36c
tree8fa57b7f920e93262df966197bd83db6ca2b55ba
parentfc0324128e7cad490ec0ac6afba0498a7b93011c
media: atomisp_gmin_platform: stop abusing efivar API

As the code comment already suggests, using the efivar API in this way
is not how it is intended, and so let's switch to the right one, which
is simply to call efi.get_variable() directly after checking whether or
not the GetVariable() runtime service is supported.

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c