Re: [PATCH v2 2/3] iio: imu: inv_mpu6050: control vdd supply using devm-helpers
From: Andrey Skvortsov
Date: Mon Apr 06 2026 - 02:53:24 EST
On 26-04-01 18:10, Andy Shevchenko wrote:
> On Wed, Apr 01, 2026 at 11:27:36AM +0300, Andrey Skvortsov wrote:
> > vdd supply will be automatically disabled on error condition during a
> > probe and on driver cleanup. Since the vdd handling is moved to
> > devm-helpers, only vddio regulator has to be disabled in the
> > driver-specific cleanup action.
>
> ...
>
> > -static void inv_mpu_core_disable_regulator_action(void *_data)
> > +static void inv_mpu_core_disable_regulator_vddio_action(void *_data)
>
> You can rename now _data --> st...
>
> > {
> > struct inv_mpu6050_state *st = _data;
>
> ...and drop this.
>
> > inv_mpu_core_disable_regulator_vddio(st);
> > }
Hi, Andy,
thanks for the review.
You are right, but this variable will be added in patch 3. Do you
think it's still worth removing variable here and add it back in patch
3? If yes, I'll change it in v2.
--
Best regards,
Andrey Skvortsov