Skip to content
Snippets Groups Projects
Commit b5aec142 authored by Simon Glass's avatar Simon Glass
Browse files

sf: Add spi_flash_alloc() to create a new SPI flash struct


At present it is difficult to extend the SPI flash structure since
all devices allocate it themselves, and few of them zero all fields.
Add a new function spi_flash_alloc() which can be used by SPI devices
to perform this allocation, and thus ensure that all devices can
better cope with SPI structure changes.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent d3504fee
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment