Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: fix label names used in device tree bindings

Device tree compiler does not recognize '-' in label name. Instead,
'_' works fine.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

authored by

Shawn Guo and committed by
Mark Brown
7728c14a 22d881c0

+5 -5
+5 -5
Documentation/devicetree/bindings/regulator/regulator.txt
··· 32 32 consumer itself. 33 33 34 34 Example of a consumer device node (mmc) referencing two 35 - regulators (twl-reg1 and twl-reg2), 35 + regulators (twl_reg1 and twl_reg2), 36 36 37 - twl-reg1: regulator@0 { 37 + twl_reg1: regulator@0 { 38 38 ... 39 39 ... 40 40 ... 41 41 }; 42 42 43 - twl-reg2: regulator@1 { 43 + twl_reg2: regulator@1 { 44 44 ... 45 45 ... 46 46 ... ··· 49 49 mmc: mmc@0x0 { 50 50 ... 51 51 ... 52 - vmmc-supply = <&twl-reg1>; 53 - vmmcaux-supply = <&twl-reg2>; 52 + vmmc-supply = <&twl_reg1>; 53 + vmmcaux-supply = <&twl_reg2>; 54 54 };