Skip to content

Commit 1322149

Browse files
a3fbroonie
authored andcommitted
regulator: rename regulator-uv-survival-time-ms according to DT binding
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. ¯\_(ツ)_/¯" [1]: https://lore.kernel.org/all/[email protected]/ [2]: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Ahmad Fatoum <[email protected]> Link: https://patch.msgid.link/20241218-regulator-uv-survival-time-ms-rename-v1-1-6cac9c3c75da@pengutronix.de Signed-off-by: Mark Brown <[email protected]>
1 parent 78d4f34 commit 1322149

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/regulator/of_regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ static int of_get_regulation_constraints(struct device *dev,
175175
if (!ret)
176176
constraints->enable_time = pval;
177177

178-
ret = of_property_read_u32(np, "regulator-uv-survival-time-ms", &pval);
178+
ret = of_property_read_u32(np, "regulator-uv-less-critical-window-ms", &pval);
179179
if (!ret)
180180
constraints->uv_less_critical_window_ms = pval;
181181
else

0 commit comments

Comments
 (0)