Skip to content
  • Simon Glass's avatar
    spi: Add function to allocate a new SPI slave · ba6c3ce9
    Simon Glass authored
    
    
    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: default avatarSimon Glass <sjg@chromium.org>
    ba6c3ce9