Searched hist:"0 ebb261a0b2d090de618a383d2378d4a00834958" (Results 1 – 2 of 2) sorted by relevance
/linux/include/linux/spi/ |
H A D | spi-mem.h | diff 0ebb261a0b2d090de618a383d2378d4a00834958 Tue Nov 06 17:05:31 CET 2018 Boris Brezillon <boris.brezillon@bootlin.com> spi: spi-mem: Add SPI_MEM_NO_DATA to the spi_mem_data_dir enum
When defining spi_mem_op templates we don't necessarily know the size that will be passed when the template is actually used, and basing the supports_op() check on op->data.nbytes to know whether there will be data transferred for a specific operation is this not possible.
Add SPI_MEM_NO_DATA to the spi_mem_data_dir enum so that we can base our checks on op->data.dir instead of op->data.nbytes.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: Mark Brown <broonie@kernel.org>
|
/linux/drivers/spi/ |
H A D | spi-mem.c | diff 0ebb261a0b2d090de618a383d2378d4a00834958 Tue Nov 06 17:05:31 CET 2018 Boris Brezillon <boris.brezillon@bootlin.com> spi: spi-mem: Add SPI_MEM_NO_DATA to the spi_mem_data_dir enum
When defining spi_mem_op templates we don't necessarily know the size that will be passed when the template is actually used, and basing the supports_op() check on op->data.nbytes to know whether there will be data transferred for a specific operation is this not possible.
Add SPI_MEM_NO_DATA to the spi_mem_data_dir enum so that we can base our checks on op->data.dir instead of op->data.nbytes.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: Mark Brown <broonie@kernel.org>
|