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

Tom Rini trini at konsulko.com
Sun Apr 18 14:46:12 CEST 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!

-------------- 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/20210418/434d5176/attachment.sig>

More information about the U-Boot mailing list