Audit <flash.h> inclusion
A large number of files include <flash.h> as it used to be how various
SPI flash related functions were found, or for other reasons entirely.
In order to migrate some further CONFIG symbols to Kconfig we need to
not include flash.h in cases where we don't have a NOR flash of some
sort enabled.  Furthermore, in cases where we are in common code and it
doesn't make sense to try and further refactor the code itself in to new
files we need to guard this inclusion.

Signed-off-by: Tom Rini <trini@konsulko.com>
1 parent 1d3ecda commit 17ead040d402c6e1fe26ac5acc4773146c8a0918
@Tom Rini Tom Rini authored on 23 Jul 2022
Showing 36 changed files
View
board/atmel/at91sam9263ek/at91sam9263ek.c
View
board/buffalo/lsxl/lsxl.c
View
board/freescale/common/fsl_validate.c
View
board/gardena/smart-gateway-mt7688/board.c
View
board/logicpd/omap3som/omap3logic.c
View
board/siemens/taurus/taurus.c
View
board/socrates/socrates.c
View
board/toradex/common/tdx-cfg-block.c
View
cmd/bootm.c
View
cmd/cramfs.c
View
cmd/cros_ec.c
View
cmd/flash.c
View
cmd/jffs2.c
View
cmd/load.c
View
cmd/mem.c
View
cmd/mvebu/bubt.c
View
cmd/sf.c
View
common/board_r.c
View
common/flash.c
View
common/update.c
View
drivers/dfu/dfu_sf.c
View
drivers/fastboot/fb_command.c
View
drivers/fastboot/fb_mmc.c
View
drivers/fastboot/fb_nand.c
View
drivers/misc/cros_ec.c
View
drivers/mtd/spi/sf_dataflash.c
View
drivers/mtd/spi/sf_mtd.c
View
drivers/mtd/spi/spi-nor-core.c