We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb49d94 commit 6ffa698Copy full SHA for 6ffa698
drivers/iio/chemical/pms7003.c
@@ -5,7 +5,6 @@
5
* Copyright (c) Tomasz Duszynski <[email protected]>
6
*/
7
8
-#include <linux/unaligned.h>
9
#include <linux/completion.h>
10
#include <linux/device.h>
11
#include <linux/errno.h>
@@ -19,6 +18,8 @@
19
18
#include <linux/module.h>
20
#include <linux/mutex.h>
21
#include <linux/serdev.h>
+#include <linux/types.h>
22
+#include <linux/unaligned.h>
23
24
#define PMS7003_DRIVER_NAME "pms7003"
25
@@ -76,7 +77,7 @@ struct pms7003_state {
76
77
/* Used to construct scan to push to the IIO buffer */
78
struct {
79
u16 data[3]; /* PM1, PM2P5, PM10 */
- s64 ts;
80
+ aligned_s64 ts;
81
} scan;
82
};
83
0 commit comments