diff options
author | Johan Jonker | 2020-03-13 17:57:00 +0100 |
---|---|---|
committer | Rob Herring | 2020-03-31 09:03:34 -0600 |
commit | 7a3a2a646b2ffb70652c9b639ed12a07d33b4653 (patch) | |
tree | c86b3613e679869a365d49c7f2e9f9a2c0b4402e /Documentation/devicetree/bindings/leds/common.yaml | |
parent | c80f0104b34c987f233a034c1d50fa150770a76b (diff) |
dt-bindings: leds: common: fix example for gpio-leds
The preferred form for gpio-leds compatible subnodes is:
^led-[0-9a-f]$
Fix example by changing led0 and led1 to led-0 and led-1.
Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/leds/common.yaml')
-rw-r--r-- | Documentation/devicetree/bindings/leds/common.yaml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/devicetree/bindings/leds/common.yaml b/Documentation/devicetree/bindings/leds/common.yaml index c60b994fe116..4c270fde4567 100644 --- a/Documentation/devicetree/bindings/leds/common.yaml +++ b/Documentation/devicetree/bindings/leds/common.yaml @@ -167,13 +167,13 @@ examples: led-controller { compatible = "gpio-leds"; - led0 { + led-0 { function = LED_FUNCTION_STATUS; linux,default-trigger = "heartbeat"; gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; }; - led1 { + led-1 { function = LED_FUNCTION_USB; gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; trigger-sources = <&ohci_port1>, <&ehci_port1>; |