[Uboot-stm32] [RFC PATCH 2/2] env: sf: remove the static env_flash variable

Tom Rini trini at konsulko.com
Sun Apr 18 12:46:12 UTC 2021


On Wed, Feb 24, 2021 at 11:52:36AM +0100, Patrick Delaunay wrote:

> 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 at foss.st.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <http://st-md-mailman.stormreply.com/pipermail/uboot-stm32/attachments/20210418/434d5176/attachment.sig>


More information about the Uboot-stm32 mailing list