[U-Boot] [PATCH v2 19/32] dm: block: Adjust device calls to go through helpers function

Simon Glass sjg at chromium.org
Sun Mar 13 02:53:11 CET 2016


On 29 February 2016 at 15:25, Simon Glass <sjg at chromium.org> wrote:
> 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 at chromium.org>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> ---
>
> Changes in v2: None
>
>  cmd/disk.c            |  6 +++---
>  cmd/ide.c             |  4 ++--
>  cmd/read.c            |  2 +-
>  cmd/usb.c             |  6 ++----
>  common/fb_mmc.c       |  5 +++--
>  disk/part_amiga.c     |  9 ++++-----
>  disk/part_dos.c       |  8 +++-----
>  disk/part_efi.c       | 34 +++++++++++++++-------------------
>  disk/part_iso.c       |  6 +++---
>  disk/part_mac.c       |  9 ++++-----
>  fs/ext4/dev.c         | 23 ++++++++++-------------
>  fs/ext4/ext4_common.c | 27 +++++++++------------------
>  fs/fat/fat.c          |  6 +++---
>  fs/fat/fat_write.c    |  5 ++---
>  include/blk.h         | 29 +++++++++++++++++++++++++++++
>  test/dm/usb.c         |  2 +-
>  16 files changed, 94 insertions(+), 87 deletions(-)

Applied to u-boot-dm/next.


More information about the U-Boot mailing list