Skip to content

Commit a34c4ba

Browse files
jic23nunojsa
authored andcommitted
iio: adc: ad7944: Fix sign and use aligned_s64 for timestamp.
Whilst it doesn't actually make any difference because the code that fills this field doesn't care, timestamps are all signed. Use the new aligned_s64 instead of open coding alignment to avoid confusing static analyzers and give slightly cleaner code. Reviewed-by: David Lechner <dlechner@baylibre.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/20241215182912.481706-2-jic23@kernel.org Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent c419c58 commit a34c4ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/adc/ad7944.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ struct ad7944_adc {
7575
u16 u16;
7676
u32 u32;
7777
} raw;
78-
u64 timestamp __aligned(8);
78+
aligned_s64 timestamp;
7979
} sample __aligned(IIO_DMA_MINALIGN);
8080
};
8181

0 commit comments

Comments
 (0)