Re: [U-Boot] [RESEND PATCH v4 2/3] mtd, nand: move common functions from cmd_nand.c to common place

2015-04-13 Thread Heiko Schocher
Hello Scott, Am 13.04.2015 22:32, schrieb Scott Wood: On Sun, 2015-04-12 at 10:12 +0200, Heiko Schocher wrote: @@ -595,7 +491,10 @@ static int do_nand(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) printf("\nNAND %s: ", cmd); /* skip first two or thr

Re: [U-Boot] [RESEND PATCH v4 2/3] mtd, nand: move common functions from cmd_nand.c to common place

2015-04-13 Thread Scott Wood
On Sun, 2015-04-12 at 10:12 +0200, Heiko Schocher wrote: > @@ -595,7 +491,10 @@ static int do_nand(cmd_tbl_t *cmdtp, int flag, int argc, > char * const argv[]) > printf("\nNAND %s: ", cmd); > /* skip first two or three arguments, look for offset and size > */ >

[U-Boot] [RESEND PATCH v4 2/3] mtd, nand: move common functions from cmd_nand.c to common place

2015-04-12 Thread Heiko Schocher
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