mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 06:31:58 +02:00
iio: imu: 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-10-jic23@kernel.org Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
a801016da0
commit
f3477faedf
|
|
@ -174,7 +174,7 @@ struct bmi323_data {
|
|||
__le16 fifo_buff[BMI323_FIFO_FULL_IN_WORDS] __aligned(IIO_DMA_MINALIGN);
|
||||
struct {
|
||||
__le16 channels[BMI323_CHAN_MAX];
|
||||
s64 ts __aligned(8);
|
||||
aligned_s64 ts;
|
||||
} buffer;
|
||||
__le16 steps_count[BMI323_STEP_LEN];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -207,7 +207,7 @@ struct bno055_priv {
|
|||
bool sw_reset;
|
||||
struct {
|
||||
__le16 chans[BNO055_SCAN_CH_COUNT];
|
||||
s64 timestamp __aligned(8);
|
||||
aligned_s64 timestamp;
|
||||
} buf;
|
||||
struct dentry *debugfs;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user