]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: Use aligned_s64 instead of open coding alignment.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 15 Dec 2024 18:29:04 +0000 (18:29 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 28 Dec 2024 14:28:15 +0000 (14:28 +0000)
commit2cfb4cd058d067cc087d02b6caba449d695e9a17
treee88528ad0ea57f7a3e32df55c9ae213eb7a6e705
parenteb3176b7417642c3a56f6c80fa3a581fa21008ad
iio: adc: 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: Marcelo Schmitt <marcelo.schmitt1@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20241215182912.481706-14-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
13 files changed:
drivers/iio/adc/ad4000.c
drivers/iio/adc/max1118.c
drivers/iio/adc/max11410.c
drivers/iio/adc/mcp3911.c
drivers/iio/adc/pac1921.c
drivers/iio/adc/rtq6056.c
drivers/iio/adc/ti-adc081c.c
drivers/iio/adc/ti-adc084s021.c
drivers/iio/adc/ti-ads1015.c
drivers/iio/adc/ti-ads1119.c
drivers/iio/adc/ti-ads131e08.c
drivers/iio/adc/ti-tsc2046.c
drivers/iio/adc/vf610_adc.c