]> git.sur5r.net Git - u-boot/commit
dm: block: Adjust device calls to go through helpers function
authorSimon Glass <sjg@chromium.org>
Mon, 29 Feb 2016 22:25:52 +0000 (15:25 -0700)
committerSimon Glass <sjg@chromium.org>
Mon, 14 Mar 2016 21:34:50 +0000 (15:34 -0600)
commit2a981dc2c62c500110aad297fa70503aec36e689
treea2098718e857b136986ee0401a40037b16e51a3a
parentbcce53d048de7f41078d25e39aa2f26d752d3658
dm: block: Adjust device calls to go through helpers function

To ease conversion to driver model, add helper functions which deal with
calling each block device method. With driver model we can reimplement these
functions with the same arguments.

Use inline functions to avoid increasing code size on some boards.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
16 files changed:
cmd/disk.c
cmd/ide.c
cmd/read.c
cmd/usb.c
common/fb_mmc.c
disk/part_amiga.c
disk/part_dos.c
disk/part_efi.c
disk/part_iso.c
disk/part_mac.c
fs/ext4/dev.c
fs/ext4/ext4_common.c
fs/fat/fat.c
fs/fat/fat_write.c
include/blk.h
test/dm/usb.c