]> 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:08:19 +0000 (11:08 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 8 Jul 2022 16:47:11 +0000 (17:47 +0100)
commit5c91f801856f16ef02a28a5ec99fee4d5270d6fe
tree1ac6a685657846a7464593408fdce49f7f86f27b
parent6e4d378da8cec5efe6e0d0055316fae1b5379ce1
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