]> git.ipfire.org Git - people/ms/u-boot.git/commit
efi_loader: provide function to get last node of a device path
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 19 Jan 2018 19:24:49 +0000 (20:24 +0100)
committerAlexander Graf <agraf@suse.de>
Mon, 22 Jan 2018 22:09:14 +0000 (23:09 +0100)
commit65436f91c5ba76f176a1f1d20801837c9746bb82
treed5b114d2154ae83ac332409a2362fc9cd2b62d53
parent4f94865b30e07a8c140751b0c0b238960fa27b8c
efi_loader: provide function to get last node of a device path

On a block device and its partitions the same protocols can be
installed. To tell the apart we can use the type of the last
node of the device path which is not the end node.

The patch provides a utility function to find this last node.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
include/efi_loader.h
lib/efi_loader/efi_device_path.c