File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 15
15
16
16
#define SPI_MEM_OP_CMD (__opcode , __buswidth ) \
17
17
{ \
18
+ .nbytes = 1, \
18
19
.buswidth = __buswidth, \
19
20
.opcode = __opcode, \
20
- .nbytes = 1, \
21
21
}
22
22
23
23
#define SPI_MEM_OP_ADDR (__nbytes , __val , __buswidth ) \
24
24
{ \
25
25
.nbytes = __nbytes, \
26
- .val = __val, \
27
26
.buswidth = __buswidth, \
27
+ .val = __val, \
28
28
}
29
29
30
30
#define SPI_MEM_OP_NO_ADDR { }
39
39
40
40
#define SPI_MEM_OP_DATA_IN (__nbytes , __buf , __buswidth ) \
41
41
{ \
42
+ .buswidth = __buswidth, \
42
43
.dir = SPI_MEM_DATA_IN, \
43
44
.nbytes = __nbytes, \
44
45
.buf.in = __buf, \
45
- .buswidth = __buswidth, \
46
46
}
47
47
48
48
#define SPI_MEM_OP_DATA_OUT (__nbytes , __buf , __buswidth ) \
49
49
{ \
50
+ .buswidth = __buswidth, \
50
51
.dir = SPI_MEM_DATA_OUT, \
51
52
.nbytes = __nbytes, \
52
53
.buf.out = __buf, \
53
- .buswidth = __buswidth, \
54
54
}
55
55
56
56
#define SPI_MEM_OP_NO_DATA { }
You can’t perform that action at this time.
0 commit comments