File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -34,16 +34,6 @@ struct iio_dev;
34
34
struct mpr_data ;
35
35
struct mpr_ops ;
36
36
37
- /**
38
- * struct mpr_chan
39
- * @pres: pressure value
40
- * @ts: timestamp
41
- */
42
- struct mpr_chan {
43
- s32 pres ;
44
- s64 ts ;
45
- };
46
-
47
37
enum mpr_func_id {
48
38
MPR_FUNCTION_A ,
49
39
MPR_FUNCTION_B ,
@@ -69,6 +59,8 @@ enum mpr_func_id {
69
59
* reading in a loop until data is ready
70
60
* @completion: handshake from irq to read
71
61
* @chan: channel values for buffered mode
62
+ * @chan.pres: pressure value
63
+ * @chan.ts: timestamp
72
64
* @buffer: raw conversion data
73
65
*/
74
66
struct mpr_data {
@@ -87,7 +79,10 @@ struct mpr_data {
87
79
struct gpio_desc * gpiod_reset ;
88
80
int irq ;
89
81
struct completion completion ;
90
- struct mpr_chan chan ;
82
+ struct {
83
+ s32 pres ;
84
+ aligned_s64 ts ;
85
+ } chan ;
91
86
u8 buffer [MPR_MEASUREMENT_RD_SIZE ] __aligned (IIO_DMA_MINALIGN );
92
87
};
93
88
You can’t perform that action at this time.
0 commit comments