]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: chemical: Use aligned_s64 instead of open coding alignment.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 15 Dec 2024 18:29:03 +0000 (18:29 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 28 Dec 2024 14:28:15 +0000 (14:28 +0000)
commiteb3176b7417642c3a56f6c80fa3a581fa21008ad
tree8034dbd5c0e40ddefe0dee36b2c424a5c2733e73
parent5532cd9d1d3a1e764b558a8053644ec0fd4cf52a
iio: chemical: 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-13-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/chemical/ccs811.c
drivers/iio/chemical/ens160_core.c
drivers/iio/chemical/scd30_core.c