mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
dm: blk: Drop blk_{read,write}_devnum()
blk_{read,write}_devnum() are no longer used by anywhere in the source tree. Drop them. Signed-off-by: Bin Meng <bmeng@tinylab.org> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
4e345656e7
commit
94a846298e
2 changed files with 0 additions and 55 deletions
|
@ -317,35 +317,6 @@ int blk_show_device(enum uclass_id uclass_id, int devnum)
|
|||
return 0;
|
||||
}
|
||||
|
||||
ulong blk_read_devnum(enum uclass_id uclass_id, int devnum, lbaint_t start,
|
||||
lbaint_t blkcnt, void *buffer)
|
||||
{
|
||||
struct blk_desc *desc;
|
||||
ulong n;
|
||||
int ret;
|
||||
|
||||
ret = blk_get_desc(uclass_id, devnum, &desc);
|
||||
if (ret)
|
||||
return ret;
|
||||
n = blk_dread(desc, start, blkcnt, buffer);
|
||||
if (IS_ERR_VALUE(n))
|
||||
return n;
|
||||
|
||||
return n;
|
||||
}
|
||||
|
||||
ulong blk_write_devnum(enum uclass_id uclass_id, int devnum, lbaint_t start,
|
||||
lbaint_t blkcnt, const void *buffer)
|
||||
{
|
||||
struct blk_desc *desc;
|
||||
int ret;
|
||||
|
||||
ret = blk_get_desc(uclass_id, devnum, &desc);
|
||||
if (ret)
|
||||
return ret;
|
||||
return blk_dwrite(desc, start, blkcnt, buffer);
|
||||
}
|
||||
|
||||
int blk_select_hwpart(struct udevice *dev, int hwpart)
|
||||
{
|
||||
const struct blk_ops *ops = blk_get_ops(dev);
|
||||
|
|
|
@ -729,32 +729,6 @@ int blk_print_device_num(enum uclass_id uclass_id, int devnum);
|
|||
*/
|
||||
int blk_print_part_devnum(enum uclass_id uclass_id, int devnum);
|
||||
|
||||
/**
|
||||
* blk_read_devnum() - read blocks from a device
|
||||
*
|
||||
* @uclass_id: Block device type
|
||||
* @devnum: Device number
|
||||
* @start: Start block number to read (0=first)
|
||||
* @blkcnt: Number of blocks to read
|
||||
* @buffer: Address to write data to
|
||||
* Return: number of blocks read, or -ve error number on error
|
||||
*/
|
||||
ulong blk_read_devnum(enum uclass_id uclass_id, int devnum, lbaint_t start,
|
||||
lbaint_t blkcnt, void *buffer);
|
||||
|
||||
/**
|
||||
* blk_write_devnum() - write blocks to a device
|
||||
*
|
||||
* @uclass_id: Block device type
|
||||
* @devnum: Device number
|
||||
* @start: Start block number to write (0=first)
|
||||
* @blkcnt: Number of blocks to write
|
||||
* @buffer: Address to read data from
|
||||
* Return: number of blocks written, or -ve error number on error
|
||||
*/
|
||||
ulong blk_write_devnum(enum uclass_id uclass_id, int devnum, lbaint_t start,
|
||||
lbaint_t blkcnt, const void *buffer);
|
||||
|
||||
/**
|
||||
* blk_select_hwpart_devnum() - select a hardware partition
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue