From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Tue, 16 Feb 2016 22:51:59 +0800 Subject: [U-Boot] [PATCH 19/30] dm: block: Adjust device calls to go through helpers function In-Reply-To: <1455502619-16093-20-git-send-email-sjg@chromium.org> References: <1455502619-16093-1-git-send-email-sjg@chromium.org> <1455502619-16093-20-git-send-email-sjg@chromium.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Feb 15, 2016 at 10:16 AM, Simon Glass 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 > --- > > 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(-) > Reviewed-by: Bin Meng