]> git.ozlabs.org Git - petitboot/commit
lib/efi: Cleanup read/write routines
authorGeoff Levand <geoff@infradead.org>
Thu, 2 Aug 2018 17:29:36 +0000 (17:29 +0000)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 7 Aug 2018 01:30:36 +0000 (11:30 +1000)
commitc3dfc9b7b91045172d460651c0309b09b0ab121a
tree47c97548efd0e1695ece1682b2afbae61c2a6b9d
parenta915889b7fbbc4be11f9a37ea7afb5b3f3d41173
lib/efi: Cleanup read/write routines

Make a new stucture struct efi_data to hold the info that describes
an efi variable.  Make a common routine efi_open that opens the efi
variable file.  Switch the efi get/set/del routines over to use
efi_open.

Signed-off-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
lib/efi/efivar.c
lib/efi/efivar.h