]> git.baikalelectronics.ru Git - uboot.git/commit
env: move more common code to env_import_redund
authorSimon Goldschmidt <sgoldschmidt@de.pepperl-fuchs.com>
Wed, 31 Jan 2018 13:47:11 +0000 (14:47 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 1 Feb 2018 13:05:49 +0000 (08:05 -0500)
commit9a28ce70008feb4ac854831df0fd3567a6a5a15d
tree6ec2b974d9b6c14666e9b743d5078a6f5b0ab050
parent874b91e88d277f859510016447885876a035eb6c
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>
env/common.c
env/mmc.c
env/nand.c
env/ubi.c
include/environment.h