summaryrefslogtreecommitdiff
path: root/drivers/nand
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2007-08-13 21:57:53 +0200
committerWolfgang Denk <wd@denx.de>2007-08-13 21:57:53 +0200
commitbe5d72d10d47609326226225181e301fb9a33b58 (patch)
treed6f6537c7ca10a5a539ad32c4c158760107237ec /drivers/nand
parenta08458303e7f9db67f296980036d3292c35cb45c (diff)
downloadu-boot-imx-be5d72d10d47609326226225181e301fb9a33b58.zip
u-boot-imx-be5d72d10d47609326226225181e301fb9a33b58.tar.gz
u-boot-imx-be5d72d10d47609326226225181e301fb9a33b58.tar.bz2
Minor coding style cleanup. Update CHANGELOG.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'drivers/nand')
-rw-r--r--drivers/nand/nand_util.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/nand/nand_util.c b/drivers/nand/nand_util.c
index aee8727..cf05043 100644
--- a/drivers/nand/nand_util.c
+++ b/drivers/nand/nand_util.c
@@ -209,7 +209,7 @@ int nand_erase_opts(nand_info_t *meminfo, const nand_erase_options_t *opts)
}
if (!opts->quiet) {
- unsigned long long n =(unsigned long long)
+ unsigned long long n =(unsigned long long)
(erase.addr+meminfo->erasesize-opts->offset)
* 100;
int percent = (int)do_div(n, erase_length);
@@ -476,8 +476,8 @@ int nand_write_opts(nand_info_t *meminfo, const nand_write_options_t *opts)
imglen -= readlen;
if (!opts->quiet) {
- unsigned long long n = (unsigned long long)
- (opts->length-imglen) * 100;
+ unsigned long long n = (unsigned long long)
+ (opts->length-imglen) * 100;
int percent = (int)do_div(n, opts->length);
/* output progress message only at whole percent
* steps to reduce the number of messages printed
@@ -651,8 +651,8 @@ int nand_read_opts(nand_info_t *meminfo, const nand_read_options_t *opts)
}
if (!opts->quiet) {
- unsigned long long n = (unsigned long long)
- (opts->length-imglen) * 100;
+ unsigned long long n = (unsigned long long)
+ (opts->length-imglen) * 100;
int percent = (int)do_div(n ,opts->length);
/* output progress message only at whole percent
* steps to reduce the number of messages printed