u-boot-brain/env
Simon Goldschmidt 31f044bd91 env: move more common code to env_import_redund
There is more common code in mmc, nand and ubi env drivers that
can be shared by moving to env_import_redund.

For this, a status/error value whether the buffers were loaded
are passed as additional parameters to env_import_redund.
Ideally, these are already returned to the env driver by the
storage driver. This is the case for mmc, nand and ubi, so for
this change, code deduplicated.

Signed-off-by: Simon Goldschmidt <sgoldschmidt@de.pepperl-fuchs.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
2018-02-01 08:05:49 -05:00
..
attr.c Move environment files from common/ to env/ 2017-08-15 08:18:45 -04:00
callback.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
common.c env: move more common code to env_import_redund 2018-02-01 08:05:49 -05:00
eeprom.c env: Replace all open-coded gd->env_valid values with ENV_ flags 2017-08-20 19:27:44 -04:00
embedded.c Move environment files from common/ to env/ 2017-08-15 08:18:45 -04:00
env.c env: Mark env_get_location as weak 2018-01-27 09:23:22 -05:00
ext4.c env: enable accessing the environment in an EXT4 partition 2018-01-15 16:28:57 -05:00
fat.c env: fat: Make the debug messages play a little nicer 2018-01-27 09:19:11 -05:00
flags.c env: Rename some other getenv()-related functions 2017-08-16 08:31:11 -04:00
flash.c env: Replace all open-coded gd->env_valid values with ENV_ flags 2017-08-20 19:27:44 -04:00
Kconfig env: sunxi: Enable FAT-based environment support by default 2018-01-27 09:23:32 -05:00
Makefile env: Drop CONFIG_ENV_IS_IN_DATAFLASH 2017-10-16 09:42:51 -04:00
mmc.c env: move more common code to env_import_redund 2018-02-01 08:05:49 -05:00
nand.c env: move more common code to env_import_redund 2018-02-01 08:05:49 -05:00
nowhere.c env: Correct case of no sub-init function 2017-08-20 19:27:28 -04:00
nvram.c env: Replace all open-coded gd->env_valid values with ENV_ flags 2017-08-20 19:27:44 -04:00
onenand.c env: make env_import(_redund) return 0 on success, not 1 2018-01-31 18:45:10 -05:00
remote.c env: Adjust the load() method to return an error 2017-08-16 08:31:24 -04:00
sata.c env: Adjust the load() method to return an error 2017-08-16 08:31:24 -04:00
sf.c env: make env_import(_redund) return 0 on success, not 1 2018-01-31 18:45:10 -05:00
ubi.c env: move more common code to env_import_redund 2018-02-01 08:05:49 -05:00