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:
@@ -33,9 +33,9 @@
|
||||
lbaint_t part_offset;
|
||||
|
||||
static struct blk_desc *ext4fs_blk_desc;
|
||||
static disk_partition_t *part_info;
|
||||
static struct disk_partition *part_info;
|
||||
|
||||
void ext4fs_set_blk_dev(struct blk_desc *rbdd, disk_partition_t *info)
|
||||
void ext4fs_set_blk_dev(struct blk_desc *rbdd, struct disk_partition *info)
|
||||
{
|
||||
assert(rbdd->blksz == (1 << rbdd->log2blksz));
|
||||
ext4fs_blk_desc = rbdd;
|
||||
|
||||
@@ -227,7 +227,7 @@ int ext4fs_read(char *buf, loff_t offset, loff_t len, loff_t *actread)
|
||||
}
|
||||
|
||||
int ext4fs_probe(struct blk_desc *fs_dev_desc,
|
||||
disk_partition_t *fs_partition)
|
||||
struct disk_partition *fs_partition)
|
||||
{
|
||||
ext4fs_set_blk_dev(fs_dev_desc, fs_partition);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user