]> 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)
commit9d31b5748b8fba9532b07027a7327b15c5f5cd67
tree8fa57b7f920e93262df966197bd83db6ca2b55ba
parent42f8e2ddd5fefff1943344d25937e46e06a03d30
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