Commit 28cbc2d4 authored by Fabien Parent's avatar Fabien Parent Committed by Mark Brown

regulator: mt6315-regulator: fix invalid allowed mode

In the binding example, the regulator mode 4 is shown as a valid mode,
but the driver actually only support mode 0 to 2:

This generates an error in dmesg when copy/pasting the binding example:
[    0.306080] vbuck1: invalid regulator-allowed-modes element 4
[    0.307290] vbuck2: invalid regulator-allowed-modes element 4

This commit fixes this error by removing the invalid mode from the
examples.

Fixes: 977fb5b5 ("regulator: document binding for MT6315 regulator")
Signed-off-by: default avatarFabien Parent <fparent@baylibre.com>
Link: https://lore.kernel.org/r/20220529154613.337559-1-fparent@baylibre.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 68d6c847
...@@ -55,7 +55,7 @@ examples: ...@@ -55,7 +55,7 @@ examples:
regulator-min-microvolt = <300000>; regulator-min-microvolt = <300000>;
regulator-max-microvolt = <1193750>; regulator-max-microvolt = <1193750>;
regulator-enable-ramp-delay = <256>; regulator-enable-ramp-delay = <256>;
regulator-allowed-modes = <0 1 2 4>; regulator-allowed-modes = <0 1 2>;
}; };
vbuck3 { vbuck3 {
...@@ -63,7 +63,7 @@ examples: ...@@ -63,7 +63,7 @@ examples:
regulator-min-microvolt = <300000>; regulator-min-microvolt = <300000>;
regulator-max-microvolt = <1193750>; regulator-max-microvolt = <1193750>;
regulator-enable-ramp-delay = <256>; regulator-enable-ramp-delay = <256>;
regulator-allowed-modes = <0 1 2 4>; regulator-allowed-modes = <0 1 2>;
}; };
}; };
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment