]> git.dujemihanovic.xyz Git - u-boot.git/commit
disk: Simplify disk_blk_{write, erase}() using blk_{write, erase}()
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 13 Aug 2023 23:46:43 +0000 (01:46 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 22 Aug 2023 19:17:52 +0000 (15:17 -0400)
commit9161c2c90d00c46e944cfeb4091230ec460a9981
tree56df79862d668cffe3fc771995111c3d4eb4ab4d
parent91d3066c907dedb3d45fd16e11f938bf46eafec7
disk: Simplify disk_blk_{write, erase}() using blk_{write, erase}()

These two functions are basically identical, just call the blk_*()
functions from disk_blk_*() functions. The only difference is that
the disk_blk_*() functions have to use parent block device as the
udevice implementing block device operations.

Add documentation on what those functions really do. The documentation
is not wrong even though it likely does look that way. The write/erase
functions really do not take into account the partition offset. This
will be fixed in the next patch.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
disk/disk-uclass.c