]> git.baikalelectronics.ru Git - uboot.git/commit
mtd: cfi: introduce CFI_FLASH_BANKS
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Tue, 4 Jan 2022 13:23:58 +0000 (14:23 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 21 Jan 2022 19:01:35 +0000 (14:01 -0500)
commit04ed5d8f3b679938aaf0982809c7696fd555d4d6
tree82c493969d61e48171c439e866148e96e7d8eb71
parentd74ca2562c8540e12f5b51dab42aa61c32aced87
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>
cmd/bootm.c
cmd/flash.c
common/flash.c
common/update.c
drivers/mtd/cfi_flash.c
drivers/mtd/cfi_mtd.c
drivers/mtd/spi/spi-nor-core.c
include/mtd/cfi_flash.h