iio: resolver: ad2s1210: Use aligned_s64 instead of open coding alignment.

Use this new type to both slightly simplify the code and avoid
confusing static analysis tools. Mostly this series is about consistency
to avoid this code pattern getting copied into more drivers.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20241215182912.481706-5-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
Jonathan Cameron 2024-12-15 18:28:55 +00:00
parent b11f6916df
commit bfca85fa96

View File

@ -164,7 +164,7 @@ struct ad2s1210_state {
struct { struct {
__be16 chan[2]; __be16 chan[2];
/* Ensure timestamp is naturally aligned. */ /* Ensure timestamp is naturally aligned. */
s64 timestamp __aligned(8); aligned_s64 timestamp;
} scan; } scan;
/** SPI transmit buffer. */ /** SPI transmit buffer. */
u8 rx[2]; u8 rx[2];