diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2017-12-11 12:56:42 +0100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2017-12-16 23:07:56 +0100 |
commit | bde6bfe4c3234480a0eef3b5bda8cf5fc83d3c79 (patch) | |
tree | 87a6ed8056c8eb58e30756179bac8d22794b8de3 /lib/efi_loader/efi_device_path.c | |
parent | 6ea8b580f06b9ba9100af1ea5fa4d160e78a4517 (diff) | |
download | u-boot-bde6bfe4c3234480a0eef3b5bda8cf5fc83d3c79.tar.gz |
efi_loader: comments for dp_part_fill()
Add a description for dp_part_fill().
Reword a comment in the function.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'lib/efi_loader/efi_device_path.c')
-rw-r--r-- | lib/efi_loader/efi_device_path.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_device_path.c b/lib/efi_loader/efi_device_path.c index 5de2c0388f..ccb59337f1 100644 --- a/lib/efi_loader/efi_device_path.c +++ b/lib/efi_loader/efi_device_path.c @@ -399,6 +399,13 @@ static unsigned dp_part_size(struct blk_desc *desc, int part) return dpsize; } +/* + * Create a device path for a block device or one of its partitions. + * + * @buf buffer to which the device path is wirtten + * @desc block device descriptor + * @part partition number, 0 identifies a block device + */ static void *dp_part_fill(void *buf, struct blk_desc *desc, int part) { disk_partition_t info; @@ -411,7 +418,7 @@ static void *dp_part_fill(void *buf, struct blk_desc *desc, int part) * and handling all the different cases like we do for non- * legacy (ie CONFIG_BLK=y) case. But most important thing * is just to have a unique device-path for if_type+devnum. - * So map things to a fictional USB device: + * So map things to a fictitious USB device. */ struct efi_device_path_usb *udp; |