mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-22 23:13:01 +02:00
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>
This commit is contained in:
parent
b5fd1849c6
commit
bed883e4f0
|
@ -75,7 +75,7 @@ struct ad7944_adc {
|
|||
u16 u16;
|
||||
u32 u32;
|
||||
} raw;
|
||||
u64 timestamp __aligned(8);
|
||||
aligned_s64 timestamp;
|
||||
} sample __aligned(IIO_DMA_MINALIGN);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user