spi_replace_transfers — replace transfers with several transfers and register change with spi_message.resources
struct spi_replaced_transfers * spi_replace_transfers ( | struct spi_message * msg, |
struct spi_transfer * xfer_first, | |
size_t remove, | |
size_t insert, | |
spi_replaced_release_t release, | |
size_t extradatasize, | |
gfp_t gfp) ; |
msg
the spi_message we work upon
xfer_first
the first spi_transfer we want to replace
remove
number of transfers to remove
insert
the number of transfers we want to insert instead
release
extra release code necessary in some circumstances
extradatasize
extra data to allocate (with alignment guarantees
of struct spi_transfer
)
gfp
gfp flags