]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: imu: inv_icm42600: fix timestamp clock period by using lower value
authorJean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com>
Tue, 23 Jun 2026 14:22:15 +0000 (16:22 +0200)
committerJonathan Cameron <jic23@kernel.org>
Mon, 6 Jul 2026 15:54:55 +0000 (16:54 +0100)
commit8b0b864c11a2e2ada470f9d5010e1c2bf1eceef2
tree516435cf6f30f34937408cc7543dd22663472642
parentaa411adc6ce40ad1a55ebc965f255a4cfc0005f8
iio: imu: inv_icm42600: fix timestamp clock period by using lower value

Clock period value is used for computing periods of sampling. There is
no need for it to be higher than the maximum odr, otherwise we are
losing precision in the computation for nothing.

Switch clock period value to maximum odr period (8kHz).

Fixes: 0ecc363ccea7 ("iio: make invensense timestamp module generic")
Cc: stable@vger.kernel.org
Signed-off-by: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c
drivers/iio/imu/inv_icm42600/inv_icm42600_gyro.c