env: nowhere: Implement .load callback
PATCH 1/1 env: nowhere: Implement .load callback
Add .load callback for the 'nowhere' environment driver. This is useful for when the 'nowhere' driver is used in combination with other drivers and should be used to load the default environment.
Signed-off-by Marek Vasut <[email protected]>
Reviewed-by Tom Rini <[email protected]>
---
V2: No change
--- env/nowhere.c | 6 ++++++ 1 file changed, 6 insertions(+)
env/nowhere.c +6 -0
@@ -15,6 +15,12 @@DECLARE_GLOBAL_DATA_PTR ; +static int env_nowhere_load (void ) +{ +env_set_default (NULL ,0 ); + +return 0 ; +}/* * Because we only ever have the default environment available we must mark * it as invalid.
Signature · 1 line
2.27.0
PATCH 1/1 env: nowhere: Implement .load callback
Quoted 19 lines · Marek Vasut
Add .load callback for the 'nowhere' environment driver. This is useful for when the 'nowhere' driver is used in combination with other drivers and should be used to load the default environment.
Signed-off-by Marek Vasut <[email protected]>Reviewed-by Tom Rini <[email protected]>---
V2: No change--- env/nowhere.c | 6 ++++++ 1 file changed, 6 insertions(+)env/nowhere.c +0
-0@@ -15,6 +15,12 @@DECLARE_GLOBAL_DATA_PTR ;
env/nowhere.c line 26
Quoted 10 lines
env/nowhere.c +6
-0+static int env_nowhere_load (void ) +{ +env_set_default (NULL ,0 ); + +return 0 ; +}/* * Because we only ever have the default environment available we must mark * it as invalid.
This isn't needed with ad3fec2364eb ("env: nowhere: add .load ops").
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200805/eb7490f5/attachment.sig>