diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2017-08-23 16:01:32 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-09-03 11:04:51 -0400 |
commit | 47d7ee47baf2c92dad390251e6c1306afa7eea29 (patch) | |
tree | a2cace7ee1142499210cf22fc2526f1a59ab83ef /include/part.h | |
parent | 5276e8b62d958a50e90dc7e8cb8260be597ae51f (diff) | |
download | u-boot-midas-47d7ee47baf2c92dad390251e6c1306afa7eea29.tar.gz u-boot-midas-47d7ee47baf2c92dad390251e6c1306afa7eea29.tar.bz2 u-boot-midas-47d7ee47baf2c92dad390251e6c1306afa7eea29.zip |
part: efi: make gpt_fill_pte take the device descriptor
The gpt_fill_pte will need to access the device block size. Let's pass the
device descriptor as an argument.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/part.h')
-rw-r--r-- | include/part.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/part.h b/include/part.h index 0cd803a933..0d5c99836b 100644 --- a/include/part.h +++ b/include/part.h @@ -289,6 +289,7 @@ int write_gpt_table(struct blk_desc *dev_desc, /** * gpt_fill_pte(): Fill the GPT partition table entry * + * @param dev_desc - block device descriptor * @param gpt_h - GPT header representation * @param gpt_e - GPT partition table entries * @param partitions - list of partitions @@ -296,8 +297,9 @@ int write_gpt_table(struct blk_desc *dev_desc, * * @return zero on success */ -int gpt_fill_pte(gpt_header *gpt_h, gpt_entry *gpt_e, - disk_partition_t *partitions, int parts); +int gpt_fill_pte(struct blk_desc *dev_desc, + gpt_header *gpt_h, gpt_entry *gpt_e, + disk_partition_t *partitions, int parts); /** * gpt_fill_header(): Fill the GPT header |