]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: pressure: Use aligned_s64 instead of open coding alignment.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 15 Dec 2024 18:28:57 +0000 (18:28 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 28 Dec 2024 14:28:15 +0000 (14:28 +0000)
commitadfaea544ea645b24b0cd692be1d1f2b6cd26677
tree1c4df6bbeac3f19c70adce7359820ac84ce416f7
parent8ee2a74efff70e8d79a93e4f4347a347d19b95cd
iio: pressure: 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.

Acked-By: Matti Vaittinen <mazziesaccount@gmail.com> #for the BD1390
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20241215182912.481706-7-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/pressure/hsc030pa.h
drivers/iio/pressure/ms5611_core.c
drivers/iio/pressure/rohm-bm1390.c