Skip to content

Commit 7d51ea9

Browse files
dlechjfvogel
authored andcommitted
iio: chemical: sps30: use aligned_s64 for timestamp
[ Upstream commit bb49d940344bcb8e2b19e69d7ac86f567887ea9a ] Follow the pattern of other drivers and use aligned_s64 for the timestamp. This will ensure that the timestamp is correctly aligned on all architectures. Fixes: a5bf6fd ("iio:chemical:sps30: Fix timestamp alignment") Signed-off-by: David Lechner <[email protected]> Reviewed-by: Nuno Sá <[email protected]> Link: https://patch.msgid.link/20250417-iio-more-timestamp-alignment-v1-5-eafac1e22318@baylibre.com Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Sasha Levin <[email protected]> (cherry picked from commit 1cf8bdd596a83594d3401d3c23b966f39b184c51) Signed-off-by: Jack Vogel <[email protected]>
1 parent 2375083 commit 7d51ea9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/chemical/sps30.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ static irqreturn_t sps30_trigger_handler(int irq, void *p)
108108
int ret;
109109
struct {
110110
s32 data[4]; /* PM1, PM2P5, PM4, PM10 */
111-
s64 ts;
111+
aligned_s64 ts;
112112
} scan;
113113

114114
mutex_lock(&state->lock);

0 commit comments

Comments
 (0)