Skip to content

Commit c949a8e

Browse files
Boris Brezillonbroonie
authored andcommitted
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>
1 parent 60489f0 commit c949a8e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

include/linux/spi/spi-mem.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ enum spi_mem_data_dir {
8181
* @data.dir: direction of the transfer
8282
* @data.nbytes: number of data bytes to send/receive. Can be zero if the
8383
* operation does not involve transferring data
84-
* @data.buf.in: input buffer
85-
* @data.buf.out: output buffer
84+
* @data.buf.in: input buffer (must be DMA-able)
85+
* @data.buf.out: output buffer (must be DMA-able)
8686
*/
8787
struct spi_mem_op {
8888
struct {
@@ -105,7 +105,6 @@ struct spi_mem_op {
105105
u8 buswidth;
106106
enum spi_mem_data_dir dir;
107107
unsigned int nbytes;
108-
/* buf.{in,out} must be DMA-able. */
109108
union {
110109
void *in;
111110
const void *out;

0 commit comments

Comments
 (0)