From: Heinrich Schuchardt Date: Mon, 11 Dec 2017 11:56:42 +0000 (+0100) Subject: efi_loader: comments for dp_part_fill() X-Git-Tag: v2018.01-rc2~9^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bde6bfe4c3234480a0eef3b5bda8cf5fc83d3c79;p=u-boot 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 Signed-off-by: Alexander Graf --- 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;