]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: mt6315-regulator: fix invalid allowed mode
authorFabien Parent <fparent@baylibre.com>
Sun, 29 May 2022 15:46:13 +0000 (17:46 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 1 Jun 2022 10:24:11 +0000 (12:24 +0200)
commit40b06ccc12ad0bf01a6c149cc60db448a76333b2
treeb1af0c88ec962a72314261d9f8ba7788382cc7e1
parent565035a5fa3594c2794925862171bd3fb042d7f6
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: 7965f75f288a ("regulator: document binding for MT6315 regulator")
Signed-off-by: Fabien Parent <fparent@baylibre.com>
Link: https://lore.kernel.org/r/20220529154613.337559-1-fparent@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/regulator/mt6315-regulator.yaml