commit | b162a7c6befdcf80a900e254233612711c699d31 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Mon Mar 11 06:08:02 2013 +0000 |
committer | Simon Glass <sjg@chromium.org> | Tue Mar 19 08:45:36 2013 -0700 |
tree | 0e1c5d4921e0e337dcffb6e4950210eff75806f1 | |
parent | d034a95d514f377567ca183d2266ec35b6001488 [diff] |
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: Simon Glass <sjg@chromium.org>