mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 05:24:39 +01:00
iio: temperature: tmp006: 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-4-jic23@kernel.org Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
1b54068b59
commit
b11f6916df
1 changed files with 1 additions and 1 deletions
|
|
@ -248,7 +248,7 @@ static irqreturn_t tmp006_trigger_handler(int irq, void *p)
|
|||
struct tmp006_data *data = iio_priv(indio_dev);
|
||||
struct {
|
||||
s16 channels[2];
|
||||
s64 ts __aligned(8);
|
||||
aligned_s64 ts;
|
||||
} scan;
|
||||
s32 ret;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue