aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/spi/spi-mem.h5
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 */
87struct spi_mem_op { 87struct 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;