From nobody Thu Dec 18 20:23:56 2025 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 67EFF15B547 for ; Wed, 18 Dec 2024 19:55:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734551712; cv=none; b=m3ZlLefoqujY7oYOMBeBBctLhCIbdxqvzI1i5SSNFQuBA8y7zGSKBo798GpYkwpx45YDbhdCi65DpaWf+/AV6UmuV5rYiFmaExhXTOhT8SZPM7KiXq5Z83Jz5cxmKqNCwT+MToarDAy5JNJTUEl1zO1fAgeeyXmvLfPng+sAf9E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734551712; c=relaxed/simple; bh=lZ/T6l223o6h8vfB7rRQTVWnr0YqqAzOJauhORabNYs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=Lax5InDfzotgE50Rzii2KwmS06TVpIKSitHKnPTMk9VkaUUaq1zUDkyKAZNzWYTRQDeN/vMjKOoiyEt/PISQoY11O7iLVF5VSezwBfuJU6hP2NBPBibDtWrn8uqQXrT7XIMAKJheP5uYsPIrUNSfEFC8pkbtzwsesFIcAiib87s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tO08T-0001XG-GM; Wed, 18 Dec 2024 20:55:09 +0100 Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tO08S-0045Fp-1d; Wed, 18 Dec 2024 20:55:09 +0100 Received: from localhost ([::1] helo=dude05.red.stw.pengutronix.de) by dude05.red.stw.pengutronix.de with esmtp (Exim 4.96) (envelope-from ) id 1tO08T-00DdFs-0i; Wed, 18 Dec 2024 20:55:09 +0100 From: Ahmad Fatoum Date: Wed, 18 Dec 2024 20:54:53 +0100 Subject: [PATCH] regulator: rename regulator-uv-survival-time-ms according to DT binding 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: <20241218-regulator-uv-survival-time-ms-rename-v1-1-6cac9c3c75da@pengutronix.de> X-B4-Tracking: v=1; b=H4sIAIwoY2cC/x2NQQrCQAxFr1KyNmDGAatXERexxhpop5J0BqH07 gZ37/Hg/w1cTMXh2m1g0tR1KSF06GB4cxkF9RkO6ZgyJerRZKwTr4thbejVmjaecNVZcPaohYP OF8mn4ZGZeoKY+pi89Pu/ud33/QerFBAVdgAAAA== X-Change-ID: 20241218-regulator-uv-survival-time-ms-rename-79e43cb4a181 To: Liam Girdwood , Mark Brown Cc: linux-kernel@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, kernel@pengutronix.de, Ahmad Fatoum X-Mailer: b4 0.14.2 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org The regulator bindings don't document regulator-uv-survival-time-ms, but the more descriptive regulator-uv-less-critical-window-ms instead. Looking back at v3[1] and v4[2] of the series adding the support, the property was indeed renamed between these patch series, but unfortunately the rename only made it into the DT bindings with the driver code still using the old name. Let's therefore rename the property in the driver code to follow suit. This will break backwards compatibility, but there are no upstream device trees using the property and we never documented the old name of the property anyway. =C2=AF\_(=E3=83=84)_/=C2=AF" [1]: https://lore.kernel.org/all/20231025084614.3092295-7-o.rempel@pengutro= nix.de/ [2]: https://lore.kernel.org/all/20231026144824.4065145-5-o.rempel@pengutro= nix.de/ Signed-off-by: Ahmad Fatoum --- drivers/regulator/of_regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/of_regulator.c b/drivers/regulator/of_regula= tor.c index 3d85762beda636479f3b3b808602a0be221c0c77..e5b4b93c07e3f5e36122a804d30= 22eba0b2d6ad9 100644 --- a/drivers/regulator/of_regulator.c +++ b/drivers/regulator/of_regulator.c @@ -175,7 +175,7 @@ static int of_get_regulation_constraints(struct device = *dev, if (!ret) constraints->enable_time =3D pval; =20 - ret =3D of_property_read_u32(np, "regulator-uv-survival-time-ms", &pval); + ret =3D of_property_read_u32(np, "regulator-uv-less-critical-window-ms", = &pval); if (!ret) constraints->uv_less_critical_window_ms =3D pval; else --- base-commit: 78d4f34e2115b517bcbfe7ec0d018bbbb6f9b0b8 change-id: 20241218-regulator-uv-survival-time-ms-rename-79e43cb4a181 Best regards, --=20 Ahmad Fatoum