- void * spi_res_alloc(struct spi_device * spi, spi_res_release_t release, size_t size, gfp_t gfp);
- the spi device for which we allocate memory
- the release code to execute for this resource
- size to alloc and return
- GFP allocation flags
the pointer to the allocated data
This may get enhanced in the future to allocate from a memory pool of the spi_device or spi_master to avoid repeated allocations.