From 4101f6879256720b30df712089a3df18565f9203 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Mon, 29 Feb 2016 15:25:34 -0700 Subject: dm: Drop the block_dev_desc_t typedef Use 'struct' instead of a typdef. Also since 'struct block_dev_desc' is long and causes 80-column violations, rename it to struct blk_desc. Signed-off-by: Simon Glass Reviewed-by: Bin Meng Tested-by: Stephen Warren --- disk/part_iso.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'disk/part_iso.c') diff --git a/disk/part_iso.c b/disk/part_iso.c index 5f4bb18..2984df5 100644 --- a/disk/part_iso.c +++ b/disk/part_iso.c @@ -46,7 +46,8 @@ static inline unsigned short le16_to_int(unsigned char *le16) /* only boot records will be listed as valid partitions */ -int get_partition_info_iso_verb(block_dev_desc_t * dev_desc, int part_num, disk_partition_t * info, int verb) +int get_partition_info_iso_verb(struct blk_desc *dev_desc, int part_num, + disk_partition_t *info, int verb) { int i,offset,entry_num; unsigned short *chksumbuf; @@ -216,13 +217,14 @@ found: return 0; } -int get_partition_info_iso(block_dev_desc_t * dev_desc, int part_num, disk_partition_t * info) +int get_partition_info_iso(struct blk_desc *dev_desc, int part_num, + disk_partition_t *info) { return(get_partition_info_iso_verb(dev_desc, part_num, info, 1)); } -void print_part_iso(block_dev_desc_t * dev_desc) +void print_part_iso(struct blk_desc *dev_desc) { disk_partition_t info; int i; @@ -239,7 +241,7 @@ void print_part_iso(block_dev_desc_t * dev_desc) } while (get_partition_info_iso_verb(dev_desc,i,&info,0)!=-1); } -int test_part_iso (block_dev_desc_t *dev_desc) +int test_part_iso(struct blk_desc *dev_desc) { disk_partition_t info; -- cgit v1.1