]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
iio: resolver: ad2s1210: Use aligned_s64 instead of open coding alignment.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 15 Dec 2024 18:28:55 +0000 (18:28 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 28 Dec 2024 14:28:15 +0000 (14:28 +0000)
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>
drivers/iio/resolver/ad2s1210.c

index a414eef12e5e317a25f856ece7f3f7326b94f1fe..b681129a99b6cf399668bf01a1f5a15fbc4f95b8 100644 (file)
@@ -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];