]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: gyro: Use aligned_s64 instead of open coding alignment.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 15 Dec 2024 18:29:02 +0000 (18:29 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 28 Dec 2024 14:28:15 +0000 (14:28 +0000)
commit5532cd9d1d3a1e764b558a8053644ec0fd4cf52a
tree37a6ea4da9a7476ee3572e85b21086d5c295405a
parent15fd16d2969d48b7540f4aa1cfa20ea7fb05c0f5
iio: gyro: 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-12-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/gyro/adxrs290.c
drivers/iio/gyro/bmg160_core.c
drivers/iio/gyro/itg3200_buffer.c
drivers/iio/gyro/mpu3050-core.c