diff options
author | Simon Glass <sjg@chromium.org> | 2018-10-01 21:22:09 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-10-09 13:40:27 +0300 |
commit | 97f57109bb750d0b2908d6ecd4aef3801baf1cf2 (patch) | |
tree | df5e1506785829d0db8920625dee12e849106df7 /drivers/input | |
parent | e6c5c94a79d9e1dd20f869a3169bf2be00d53d14 (diff) | |
download | u-boot-97f57109bb750d0b2908d6ecd4aef3801baf1cf2.tar.xz |
sf: Avoid allocating memory on every read operation
At present spi_flash_cmd_read_ops() allocates and frees a few bytes of
memory every time it is called. It is faster to use the stack for this
and this is now supported by the minimum GCC version required by U-Boot.
Remove the allocation and use a variable-sized array instead.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/input')
0 files changed, 0 insertions, 0 deletions