commit | 625dd91c04dd29e7eb7f254eb52481d0ccf361a4 | [log] [tgz] |
---|---|---|
author | Patrick Delaunay <patrick.delaunay@foss.st.com> | Wed Feb 24 11:52:36 2021 +0100 |
committer | Tom Rini <trini@konsulko.com> | Fri Apr 16 17:33:33 2021 -0400 |
tree | 4277ef551c64391e92d1a57410a09dda59d7a508 | |
parent | a1b3eefbdf2beb21922afbc62ed5a1ba8290c702 [diff] |
env: sf: remove the static env_flash variable As the the SPI flash is probed and is released in each ENV sf function the env_flash no more need to be static. This patch move this device handle as local variable of each function and simplify the associated code (env_flash is never == NULL when setup_flash_device is called). Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>