mtd: cfi: introduce CFI_FLASH_BANKS
Replace CONFIG_SYS_MAX_FLASH_BANKS by CFI_FLASH_BANKS to prepare Kconfig migration and avoid to redefine CONFIG_SYS_MAX_FLASH_BANKS in cfi_flash.h. After this patch CONFIG_SYS_MAX_FLASH_BANKS should be never used in the cfi code: use CFI_MAX_FLASH_BANKS for struct size or CFI_FLASH_BANKS for number of CFI banks which can be dynamic. This patch modify all the files which include mtd/cfi_flash.h. Signed-off-by:Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by:
Stefan Roese <sr@denx.de>
Showing
- cmd/bootm.c 1 addition, 1 deletioncmd/bootm.c
- cmd/flash.c 17 additions, 17 deletionscmd/flash.c
- common/flash.c 1 addition, 1 deletioncommon/flash.c
- common/update.c 2 additions, 2 deletionscommon/update.c
- drivers/mtd/cfi_flash.c 2 additions, 2 deletionsdrivers/mtd/cfi_flash.c
- drivers/mtd/cfi_mtd.c 2 additions, 2 deletionsdrivers/mtd/cfi_mtd.c
- drivers/mtd/spi/spi-nor-core.c 2 additions, 3 deletionsdrivers/mtd/spi/spi-nor-core.c
- include/mtd/cfi_flash.h 6 additions, 3 deletionsinclude/mtd/cfi_flash.h
Loading
Please register or sign in to comment