efi: add and use new efi_device_has_guid helper
We have at least two places where we check if a efidev has a particular
guid and a follow-up commit will introduce a third place.

So lets factor it out into a helper.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent a62aab1 commit ca79508e0f717a62e5302330b4a62b2f28a1b032
@Ahmad Fatoum Ahmad Fatoum authored on 4 Dec 2019
Sascha Hauer committed on 9 Dec 2019
Showing 3 changed files
View
drivers/block/efi-block-io.c
View
drivers/efi/efi-device.c
View
include/efi/efi-device.h