]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
cmd_onenand.c: moved to standard subcommand handling
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Sat, 27 Mar 2010 16:14:36 +0000 (17:14 +0100)
committerWolfgang Denk <wd@denx.de>
Wed, 5 May 2010 21:57:17 +0000 (23:57 +0200)
commit8cd852824d91e232f1f820a0772c3c1d8af84b05
tree91126ab80dc282461f3cd4c573b965fc689fc87c
parent3882d7a5a57eb8d1f41570522445bab61c628e6f
cmd_onenand.c: moved to standard subcommand handling

On the fly also fixed the following things:
- write help talked about a parameter oob, but that one was not used, so
  removed it from the help message.
- the test command also allowed a force subcommand but didn't use it.
  eliminated the code.
- do_onenand made static
- do_onenand contained
int blocksize;
...
mtd = &onenand_mtd;
this = mtd->priv;
blocksize = (1 << this->erase_shift);
  As blocksize was not used the last two statements were unneeded so
  removed them.
  The first statement (mtd = ....) assigns to a global. Not sure if it
  is needed, and since I could not test this, left the line for now

Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
common/cmd_onenand.c