From: Jonathan Cameron Date: Sun, 15 Dec 2024 18:28:55 +0000 (+0000) Subject: iio: resolver: ad2s1210: Use aligned_s64 instead of open coding alignment. X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=bfca85fa9630309dcf60fe5b0b54e0b09f085053;p=users%2Fjedix%2Flinux-maple.git 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 Link: https://patch.msgid.link/20241215182912.481706-5-jic23@kernel.org Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/resolver/ad2s1210.c b/drivers/iio/resolver/ad2s1210.c index a414eef12e5e3..b681129a99b6c 100644 --- a/drivers/iio/resolver/ad2s1210.c +++ b/drivers/iio/resolver/ad2s1210.c @@ -164,7 +164,7 @@ struct ad2s1210_state { struct { __be16 chan[2]; /* Ensure timestamp is naturally aligned. */ - s64 timestamp __aligned(8); + aligned_s64 timestamp; } scan; /** SPI transmit buffer. */ u8 rx[2];