Re: [PATCH] iio: imu: inv_mpu6050: fix swapped accel and gyro startup times

From: Jonathan Cameron

Date: Sat Oct 17 2026 - 19:10:57 EST



> > {
> > .whoami = INV_IAM20680HT_WHOAMI_VALUE,
> >@@ -311,7 +365,10 @@ static const struct inv_mpu6050_hw hw_info[] = {
> > .config = &chip_config_6500,
> > .fifo_size = 4 * 1024,
> > .temp = {INV_ICM20608_TEMP_OFFSET, INV_ICM20608_TEMP_SCALE},
> >- .startup_time = {INV_MPU6500_GYRO_STARTUP_TIME, INV_MPU6500_ACCEL_STARTUP_TIME},
> >+ .startup_time = {
> >+ .accel = INV_MPU6500_ACCEL_STARTUP_TIME,
> >+ .gyro = INV_MPU6500_GYRO_STARTUP_TIME,
> >+ },
> > },
> > };
> >
> >--
> >2.53.0
> >
>
> Hello Arnav,
>
> another good catch, thanks for the patch.
Absolutely.

If you fancy doing a follow up cleanup, lets reduce chance of similar
by using named initializers for .temp just above each of the changes
made in this patch.

No problem if you have moved onto other things!

Applied to the fixes-togreg branch of iio.git and marked for stable.

Jonathan

>
> Acked-by: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@xxxxxxx>
>
> Thanks,
> JB