[U-Boot] [PATCH 2/4 v2] cfi_flash: Add weak default for cfi_flash_bank_addr()
Wolfgang Denk
wd at denx.de
Thu Sep 9 12:42:13 CEST 2010
Dear Stefan Roese,
In message <1284026772-16694-1-git-send-email-sr at denx.de> you wrote:
> cfi_flash_bank_addr(int bank_nr) returns the base addresses of the
> requested bank. Introducing this weak default enables boards to override
> this functions with a board specific version when required.
...
> + return ((phys_addr_t [])CONFIG_SYS_FLASH_BANKS_LIST)[i];
...
> -#define BANK_BASE(i) (((phys_addr_t [CFI_MAX_FLASH_BANKS])CONFIG_SYS_FLASH_BANKS_LIST)[i])
Was the change from "[CFI_MAX_FLASH_BANKS]" to "[]" intentional?
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Teenagers are people who express a burning desire to be different by
dressing exactly alike.
There are some strings. They're just not attached.
More information about the U-Boot
mailing list