diff options
author | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2010-03-27 19:14:36 +0300 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-05-06 01:57:17 +0400 |
commit | 8cd852824d91e232f1f820a0772c3c1d8af84b05 (patch) | |
tree | 91126ab80dc282461f3cd4c573b965fc689fc87c /post | |
parent | 3882d7a5a57eb8d1f41570522445bab61c628e6f (diff) | |
download | u-boot-8cd852824d91e232f1f820a0772c3c1d8af84b05.tar.xz |
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>
Diffstat (limited to 'post')
0 files changed, 0 insertions, 0 deletions