From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Sun, 18 Apr 2021 08:46:12 -0400 Subject: [RFC PATCH 2/2] env: sf: remove the static env_flash variable In-Reply-To: <20210224115218.RFC.2.I5c06755fe3aea5afd6b9880630bfc7c8218eaa8b@changeid> References: <20210224105236.25663-1-patrick.delaunay@foss.st.com> <20210224115218.RFC.2.I5c06755fe3aea5afd6b9880630bfc7c8218eaa8b@changeid> Message-ID: <20210418124612.GA18475@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 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: