]> git.sur5r.net Git - u-boot/commit
cfi_flash: Cleanup flash_print_info()
authorStefan Roese <sr@denx.de>
Fri, 13 Aug 2010 07:36:36 +0000 (09:36 +0200)
committerStefan Roese <sr@denx.de>
Wed, 18 Aug 2010 07:09:00 +0000 (09:09 +0200)
commit70084df7125a0b67de707b999982ec67adfdc35c
tree5b000a06eb2ec9cef2a2b712f2b5e68ceffda762
parentd77c7ac47e4ea750cc13c2f0ecc037ab7afa7964
cfi_flash: Cleanup flash_print_info()

This patch does the following:

- Extract code to detect if sector is erased into function
  sector_erased().
- Because of this, we don't have variable declarations inside the
  sector loop in flash_print_info()
- Change "return" to "break" in the "if (ctrlc()) statement:
  This fixes a problem with the resulting output. Before this
  patch the output was:

  Sector Start Addresses:
  FC000000        FC020000        FC040000   =>

  With this patch it is now:

  Sector Start Addresses:
  FC000000        FC020000        FC040000
  =>

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Kim Phillips <kim.phillips@freescale.com>
Cc: Wolfgang Denk <wd@denx.de>
drivers/mtd/cfi_flash.c