mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-20 22:21:41 +00:00
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>
This commit is contained in:
parent
6ea8b580f0
commit
bde6bfe4c3
1 changed files with 8 additions and 1 deletions
|
@ -399,6 +399,13 @@ static unsigned dp_part_size(struct blk_desc *desc, int part)
|
||||||
return dpsize;
|
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)
|
static void *dp_part_fill(void *buf, struct blk_desc *desc, int part)
|
||||||
{
|
{
|
||||||
disk_partition_t info;
|
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-
|
* and handling all the different cases like we do for non-
|
||||||
* legacy (ie CONFIG_BLK=y) case. But most important thing
|
* legacy (ie CONFIG_BLK=y) case. But most important thing
|
||||||
* is just to have a unique device-path for if_type+devnum.
|
* 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;
|
struct efi_device_path_usb *udp;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue