mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
part: Drop disk_partition_t typedef
We should not be using typedefs and these make it harder to use forward declarations (to reduce header file inclusions). Drop the typedef. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -15,7 +15,7 @@ int spl_load_image_ext(struct spl_image_info *spl_image,
|
||||
s32 err;
|
||||
struct image_header *header;
|
||||
loff_t filelen, actlen;
|
||||
disk_partition_t part_info = {};
|
||||
struct disk_partition part_info = {};
|
||||
|
||||
header = spl_get_load_buffer(-sizeof(*header), sizeof(*header));
|
||||
|
||||
@@ -69,7 +69,7 @@ int spl_load_image_ext_os(struct spl_image_info *spl_image,
|
||||
{
|
||||
int err;
|
||||
__maybe_unused loff_t filelen, actlen;
|
||||
disk_partition_t part_info = {};
|
||||
struct disk_partition part_info = {};
|
||||
__maybe_unused char *file;
|
||||
|
||||
if (part_get_info(block_dev, partition, &part_info)) {
|
||||
|
@@ -168,7 +168,7 @@ static int mmc_load_image_raw_partition(struct spl_image_info *spl_image,
|
||||
struct mmc *mmc, int partition,
|
||||
unsigned long sector)
|
||||
{
|
||||
disk_partition_t info;
|
||||
struct disk_partition info;
|
||||
int err;
|
||||
|
||||
#ifdef CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
|
||||
|
Reference in New Issue
Block a user