Skip to content
Commit f178f7c9 authored by Rafał Miłecki's avatar Rafał Miłecki Committed by Tom Rini
Browse files

fw_env: make flash_io() take buffer as an argument



It's usually easier to understand code & follow it if all arguments are
passed explicitly. Many coding styles also discourage using global
variables.

Behaviour of flash_io() was a bit unintuitive as it was writing to a
buffer referenced in a global struct. That required developers to
remember how it works and sometimes required hacking "environment"
global struct variable to read data into a proper buffer.

Signed-off-by: default avatarRafał Miłecki <rafal@milecki.pl>
parent aafb31fc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment