env: Add an enum for environment state
authorSimon Glass <sjg@chromium.org>
Thu, 3 Aug 2017 18:21:56 +0000 (12:21 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 15 Aug 2017 12:18:51 +0000 (08:18 -0400)
commit203e94f6c9ca03e260175ce240f5856507395585
tree1b13b0ff87c4117e18e6ee7db97e09c541724b69
parent75de597d2d91b1102584d4b641daf592d894207e
env: Add an enum for environment state

At present we have three states for the environment, numbered 0, 1 and 2.
Add an enum to record this to avoid open-coded values.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
28 files changed:
board/Arcturus/ucp1020/spl.c
board/freescale/b4860qds/spl.c
board/freescale/c29xpcie/spl.c
board/freescale/p1010rdb/spl.c
board/freescale/p1022ds/spl.c
board/freescale/p1_p2_rdb_pc/spl.c
board/freescale/t102xqds/spl.c
board/freescale/t102xrdb/spl.c
board/freescale/t104xrdb/spl.c
board/freescale/t208xqds/spl.c
board/freescale/t208xrdb/spl.c
board/freescale/t4qds/spl.c
board/freescale/t4rdb/spl.c
env/dataflash.c
env/eeprom.c
env/ext4.c
env/fat.c
env/flash.c
env/mmc.c
env/nand.c
env/nvram.c
env/onenand.c
env/remote.c
env/sata.c
env/sf.c
env/ubi.c
include/asm-generic/global_data.h
include/environment.h