]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: magnetometer: Use aligned_s64 instead of open coding alignment.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 15 Dec 2024 18:28:58 +0000 (18:28 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 28 Dec 2024 14:28:15 +0000 (14:28 +0000)
commit8d7940857f914d5c6270d5718a96e5dabdedcbad
tree7f17ad2e39b3d402e5c013a69e39a3b7f76b68db
parentadfaea544ea645b24b0cd692be1d1f2b6cd26677
iio: magnetometer: 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-8-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/magnetometer/af8133j.c
drivers/iio/magnetometer/ak8974.c
drivers/iio/magnetometer/ak8975.c
drivers/iio/magnetometer/bmc150_magn.c
drivers/iio/magnetometer/hmc5843.h
drivers/iio/magnetometer/mag3110.c
drivers/iio/magnetometer/yamaha-yas530.c