commit | aaca776168a24feb3c44cbeba65818fb14e15f46 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Mon Mar 11 06:08:00 2013 +0000 |
committer | Simon Glass <sjg@chromium.org> | Tue Mar 19 08:45:36 2013 -0700 |
tree | a8b4225933d46d136fc76e5d033121124e491469 | |
parent | f4299552d8bccd31d521095402e12fb505505604 [diff] |
spi: Add function to allocate a new SPI slave At present it is difficult to extend the SPI structure since all drivers allocate it themselves, and few of them zero all fields. Add a new function spi_alloc_slave() which can be used by SPI drivers to perform this allocation, and thus ensure that all drivers can better cope with SPI structure changes. Signed-off-by: Simon Glass <sjg@chromium.org>