]> git.kernelconcepts.de Git - karo-tx-uboot.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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 22:47:20 +0000 (00:47 +0200)
commitb8e12e63d3b13add943cf51a76c640b2bbb0718a
treef111203e3d7757b09e209b493cd0ca9bdac92350
parent8a73483c5c03869f20036d84bb4c0b136ba9c82b
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