SYNOPSIS
- 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);
ARGUMENTS
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
RETURNS
pointer to spi_replaced_transfers, PTR_ERR(...) in case of errors.
COPYRIGHT