Skip to content

Commit 114fa13

Browse files
krzkpavelmachek
authored andcommitted
dt-bindings: leds: common: fix unit address in max77693 example
The max77693 LED device node should not take an unit address, because it is instantiated from a max77693 I2C parent device node. This also splits all examples to separate DTS examples because they are actually independent. Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Rob Herring <[email protected]> Reviewed-by: Javier Martinez Canillas <[email protected]> Signed-off-by: Pavel Machek <[email protected]>
1 parent dfd42fa commit 114fa13

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Documentation/devicetree/bindings/leds/common.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,11 @@ examples:
185185
};
186186
};
187187
188-
led-controller@0 {
188+
- |
189+
#include <dt-bindings/leds/common.h>
190+
191+
led-controller {
189192
compatible = "maxim,max77693-led";
190-
reg = <0 0x100>;
191193
192194
led {
193195
function = LED_FUNCTION_FLASH;
@@ -199,6 +201,9 @@ examples:
199201
};
200202
};
201203
204+
- |
205+
#include <dt-bindings/leds/common.h>
206+
202207
i2c {
203208
#address-cells = <1>;
204209
#size-cells = <0>;

0 commit comments

Comments
 (0)