]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
io: adc: ina2xx-adc: Fix sign and use aligned_s64 for timestamp.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 15 Dec 2024 18:28:53 +0000 (18:28 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 28 Dec 2024 14:28:14 +0000 (14:28 +0000)
commit1b54068b5934a871f1895adc5e5ca4355781eeb7
tree706297054260efe4b656d1473417006ba23e0de8
parentbed883e4f040419e79621e214127381de941973e
io: adc: ina2xx-adc: Fix sign and use aligned_s64 for timestamp.

Whilst it doesn't actually make any difference because the code
that fills this field doesn't care, timestamps are all signed.
Use the new aligned_s64 instead of open coding alignment to avoid
confusing static analyzers and give slightly cleaner code.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20241215182912.481706-3-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ina2xx-adc.c