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> |
---|
|
drivers/block/efi-block-io.c |
---|
drivers/efi/efi-device.c |
---|
include/efi/efi-device.h |
---|