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)
commit38d4f74bc14847491d07bd745dc4a2c274f4987d
tree8fa57b7f920e93262df966197bd83db6ca2b55ba
parent416581e486798cbe3e2b3306faee7d7e9bf3c3d4
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