Re: [PATCH] iio: imu: inv_mpu6050: use named initializers for temp in hw_info[]

From: Joshua Crofts

Date: Tue Oct 20 2026 - 04:03:36 EST


On Sun, 18 Oct 2026 05:39:13 +0530
Arnav Kapoor <kapoorarnav43@xxxxxxxxx> wrote:

> The temp member of struct inv_mpu6050_hw is initialized positionally
> in every entry of hw_info[], as { *_TEMP_OFFSET, *_TEMP_SCALE }. The
> order is correct today, but positional initializers of this kind are
> how the accel and gyro startup times ended up swapped.
>
> Use designated initializers, as already done for startup_time, so each
> value is assigned to the member it is named after.
>
> No functional change.
>
> Suggested-by: Jonathan Cameron <jic23@xxxxxxxxxx>
> Signed-off-by: Arnav Kapoor <kapoorarnav43@xxxxxxxxx>
> ---

Your patch fails to apply, please check it out.

--
Kind regards,
Joshua Crofts