Skip to content

Commit 27e6ddf

Browse files
committed
iio: imu: inv_icm42600: switch timestamp type from int64_t __aligned(8) to aligned_s64
The vast majority of IIO drivers use aligned_s64 for the type of the timestamp field. It is not a bug to use int64_t and until this series iio_push_to_buffers_with_timestamp() took and int64_t timestamp, it is inconsistent. This change is to remove that inconsistency and ensure there is one obvious choice for future drivers. Acked-by: Jean-Baptiste Maneyrol <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
1 parent beac9d1 commit 27e6ddf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ static const struct iio_chan_spec inv_icm42600_accel_channels[] = {
178178
struct inv_icm42600_accel_buffer {
179179
struct inv_icm42600_fifo_sensor_data accel;
180180
int16_t temp;
181-
int64_t timestamp __aligned(8);
181+
aligned_s64 timestamp;
182182
};
183183

184184
#define INV_ICM42600_SCAN_MASK_ACCEL_3AXIS \

drivers/iio/imu/inv_icm42600/inv_icm42600_gyro.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ static const struct iio_chan_spec inv_icm42600_gyro_channels[] = {
7878
struct inv_icm42600_gyro_buffer {
7979
struct inv_icm42600_fifo_sensor_data gyro;
8080
int16_t temp;
81-
int64_t timestamp __aligned(8);
81+
aligned_s64 timestamp;
8282
};
8383

8484
#define INV_ICM42600_SCAN_MASK_GYRO_3AXIS \

0 commit comments

Comments
 (0)