media: atomisp_gmin_platform: stop abusing efivar API
authorArd Biesheuvel <ardb@kernel.org>
Mon, 20 Jun 2022 10:08:19 +0000 (11:08 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 8 Jul 2022 16:47:11 +0000 (17:47 +0100)
commit0c122ad91fc94f1643ca56f808f111b6b4c1646c
tree1ac6a685657846a7464593408fdce49f7f86f27b
parent1713dceb5753b1e71a86d0ce467993405cedb0e6
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.

Link: https://lore.kernel.org/linux-media/20220620100819.1682995-1-ardb@kernel.org
Cc: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c