[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250709-icm42pmreg-v1-1-3d0e793c99b2@geanix.com>
Date: Wed, 09 Jul 2025 14:35:09 +0200
From: Sean Nyekjaer <sean@...nix.com>
To: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@....com>,
Jonathan Cameron <jic23@...nel.org>, David Lechner <dlechner@...libre.com>,
Nuno Sá <nuno.sa@...log.com>,
Andy Shevchenko <andy@...nel.org>
Cc: linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org,
Sean Nyekjaer <sean@...nix.com>
Subject: [PATCH 1/6] iio: imu: inv_icm42600: Use
inv_icm42600_disable_vddio_reg()
Replace direct calls to regulator_disable() with the existing
inv_icm42600_disable_vddio_reg() helper. This improves consistency
and ensures any future changes to the disable logic are centralized.
Signed-off-by: Sean Nyekjaer <sean@...nix.com>
---
drivers/iio/imu/inv_icm42600/inv_icm42600_core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_core.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_core.c
index a4d42e7e21807f7954def431e9cf03dffaa5bd5e..69496d1c1ff73132f5e7bd076d18a62c293285a2 100644
--- a/drivers/iio/imu/inv_icm42600/inv_icm42600_core.c
+++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_core.c
@@ -892,7 +892,7 @@ static int inv_icm42600_suspend(struct device *dev)
/* disable vddio regulator if chip is sleeping */
if (!wakeup)
- regulator_disable(st->vddio_supply);
+ inv_icm42600_disable_vddio_reg(st);
out_unlock:
mutex_unlock(&st->lock);
@@ -973,7 +973,7 @@ static int inv_icm42600_runtime_suspend(struct device *dev)
if (ret)
goto error_unlock;
- regulator_disable(st->vddio_supply);
+ inv_icm42600_disable_vddio_reg(st);
error_unlock:
mutex_unlock(&st->lock);
--
2.50.0
Powered by blists - more mailing lists