From nobody Tue Oct 7 14:56:30 2025 Received: from mail-43171.protonmail.ch (mail-43171.protonmail.ch [185.70.43.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 86CA62D9796 for ; Wed, 9 Jul 2025 12:35:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.43.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752064533; cv=none; b=nNytQzKk/7LNCKqNsEqI7fabBghetcoWjv9cpMZJft/RdJ10G1XyEn1F2w0Mrp4qCDKplyhqH+GGhmscRrjz1IFQ4eNNEd8huQFC4YtPYF9AVVb2lJZ8NgmtKM8Q76iahsql14jQDBy6/UcEsfRbo0yrOqTg676tfMqJNt2rWAk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752064533; c=relaxed/simple; bh=WjBv+IqC825TXVG2xRcp0WQob+tWH9klHN01U9Jgx2c=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mk0+8sZByejlQSB0tvkOoXkwTctunqsvbQSvnvoxD9lU+x1v4WbY1GtuSxVecoLUbv5/QX8PxRKSBiwfr14dXpXtY7ASE7mhOSBGMTH5juWwxMPZSDSXf0aYo4ka4xtrE67sjC5EzkvgkxYLV679Gi1wZDyo71xDgRRheTPgBIg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=geanix.com; spf=pass smtp.mailfrom=geanix.com; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b=iiyrDiIu; arc=none smtp.client-ip=185.70.43.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=geanix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=geanix.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=geanix.com header.i=@geanix.com header.b="iiyrDiIu" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=geanix.com; s=protonmail; t=1752064522; x=1752323722; bh=/KotKrvzSuZ1fCGQuYNoDiGuvp6Ejyo5IuM8cm1J9bY=; h=From:Date:Subject:Message-Id:References:In-Reply-To:To:Cc:From:To: Cc:Date:Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=iiyrDiIuCApiV4JDS6itxddo6T0/8ob/xUEmMt/f9eb8OZ/Qa90FsyFHlPZXjIcVo JAgCCJcGcIpFJIJu8KWuunkpWwPMn7miRj+9KyVZl6+jOa2nEhisk6OHHJuocqYqkr 1Oq93mY/JV65scOYWPA12LoWIuv2iFnbkkhpUwueqaqHZQawn3nhUH7mHj1Pb0tNuE zJp/SQrJt95izW15GzqYNEQEa3XNTFNm9iGvQCfUG2J6c4o0VfZPUF5F9o9AENqsgj Ill8ZJg3ulPseMDz1fwQUE9fv3LgGEC0QaKJKpJBYs9pUb5ohNdDhqRn55f31v/tqM d4n7kVcEX9q4g== X-Pm-Submission-Id: 4bccrT0sZYz1DDrV From: Sean Nyekjaer Date: Wed, 09 Jul 2025 14:35:09 +0200 Subject: [PATCH 1/6] iio: imu: inv_icm42600: Use inv_icm42600_disable_vddio_reg() Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250709-icm42pmreg-v1-1-3d0e793c99b2@geanix.com> References: <20250709-icm42pmreg-v1-0-3d0e793c99b2@geanix.com> In-Reply-To: <20250709-icm42pmreg-v1-0-3d0e793c99b2@geanix.com> To: Jean-Baptiste Maneyrol , Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Sean Nyekjaer X-Mailer: b4 0.14.2 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 --- 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..69496d1c1ff73132f5e7bd076d1= 8a62c293285a2 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) =20 /* disable vddio regulator if chip is sleeping */ if (!wakeup) - regulator_disable(st->vddio_supply); + inv_icm42600_disable_vddio_reg(st); =20 out_unlock: mutex_unlock(&st->lock); @@ -973,7 +973,7 @@ static int inv_icm42600_runtime_suspend(struct device *= dev) if (ret) goto error_unlock; =20 - regulator_disable(st->vddio_supply); + inv_icm42600_disable_vddio_reg(st); =20 error_unlock: mutex_unlock(&st->lock); --=20 2.50.0