diff options
| author | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-09-20 03:31:11 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2018-09-20 15:23:31 -0400 |
| commit | c949a8e8b43f2c75567269bcc9a50d704ae3c420 (patch) | |
| tree | b2691ab379c4f5789ab33e22bea6807b2063dd6b | |
| parent | 60489f085574157c343fc62a32f997fe7346a659 (diff) | |
spi: spi-mem: Move the DMA-able constraint doc to the kerneldoc header
We'd better have that documented in the kerneldoc header, so that it's
exposed to the doc generated by Sphinx.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
| -rw-r--r-- | include/linux/spi/spi-mem.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/spi/spi-mem.h b/include/linux/spi/spi-mem.h index 0cfbb1ad8d96..7195fbc234aa 100644 --- a/include/linux/spi/spi-mem.h +++ b/include/linux/spi/spi-mem.h | |||
| @@ -81,8 +81,8 @@ enum spi_mem_data_dir { | |||
| 81 | * @data.dir: direction of the transfer | 81 | * @data.dir: direction of the transfer |
| 82 | * @data.nbytes: number of data bytes to send/receive. Can be zero if the | 82 | * @data.nbytes: number of data bytes to send/receive. Can be zero if the |
| 83 | * operation does not involve transferring data | 83 | * operation does not involve transferring data |
| 84 | * @data.buf.in: input buffer | 84 | * @data.buf.in: input buffer (must be DMA-able) |
| 85 | * @data.buf.out: output buffer | 85 | * @data.buf.out: output buffer (must be DMA-able) |
| 86 | */ | 86 | */ |
| 87 | struct spi_mem_op { | 87 | struct spi_mem_op { |
| 88 | struct { | 88 | struct { |
| @@ -105,7 +105,6 @@ struct spi_mem_op { | |||
| 105 | u8 buswidth; | 105 | u8 buswidth; |
| 106 | enum spi_mem_data_dir dir; | 106 | enum spi_mem_data_dir dir; |
| 107 | unsigned int nbytes; | 107 | unsigned int nbytes; |
| 108 | /* buf.{in,out} must be DMA-able. */ | ||
| 109 | union { | 108 | union { |
| 110 | void *in; | 109 | void *in; |
| 111 | const void *out; | 110 | const void *out; |
