]> git.baikalelectronics.ru Git - uboot.git/commit
env: sf: remove the static env_flash variable
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Wed, 24 Feb 2021 10:52:36 +0000 (11:52 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 16 Apr 2021 21:33:33 +0000 (17:33 -0400)
commit2f10643615bd54d46bf1fa1c78f35f8810e31dee
tree4277ef551c64391e92d1a57410a09dda59d7a508
parent1cf6cbb260bf68565920e6a065b1f40f2dd1a15a
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>
env/sf.c