]> git.ipfire.org Git - people/ms/u-boot.git/commit
mtd, nand: Move common functions from cmd_nand.c to common place
authorHeiko Schocher <hs@denx.de>
Mon, 27 Apr 2015 05:42:05 +0000 (07:42 +0200)
committerJagan Teki <jteki@openedev.com>
Mon, 29 Jun 2015 19:10:11 +0000 (00:40 +0530)
commit09c3280754f8f68a4d7fc0ee397a92b38c4f59e4
tree689e7996e2475d0199f9b16dc66009457dd66b6a
parent9fe6d8716e090f3b2dd3f4604acfced124b8a2fc
mtd, nand: Move common functions from cmd_nand.c to common place

Move common functions from cmd_nand.c (for calculating offset
and size from cmdline paramter) to common place, so they could
used from other commands which use mtd partitions.

For onenand the arg_off_size() is left in common/cmd_onenand.c.
It should use now the common arg_off() function, but as I could
not test onenand I let it there ...

Signed-off-by: Heiko Schocher <hs@denx.de>
Acked-by: Scott Wood <scottwood@freescale.com>
Reviewed-by: Jagannadh Teki <jteki@openedev.com>
common/cmd_nand.c
common/cmd_onenand.c
common/cmd_test.c
drivers/mtd/Makefile
drivers/mtd/mtd_uboot.c [new file with mode: 0644]
include/linux/mtd/mtd.h
include/vsprintf.h
lib/vsprintf.c