mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
dm: block: Rename device number member dev to devnum
This is a device number, and we want to use 'dev' to mean a driver model device. Rename the member. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Stephen Warren <swarren@nvidia.com>
This commit is contained in:
parent
782b97805e
commit
bcce53d048
28 changed files with 111 additions and 109 deletions
|
@ -356,7 +356,7 @@ static int set_protective_mbr(struct blk_desc *dev_desc)
|
|||
/* Write MBR sector to the MMC device */
|
||||
if (dev_desc->block_write(dev_desc, 0, 1, p_mbr) != 1) {
|
||||
printf("** Can't write to device %d **\n",
|
||||
dev_desc->dev);
|
||||
dev_desc->devnum);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -410,7 +410,7 @@ int write_gpt_table(struct blk_desc *dev_desc,
|
|||
return 0;
|
||||
|
||||
err:
|
||||
printf("** Can't write to device %d **\n", dev_desc->dev);
|
||||
printf("** Can't write to device %d **\n", dev_desc->devnum);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue