Skip to content

Commit aa13528

Browse files
krzkrobherring
authored andcommitted
dt-bindings: Fix I2C bus node names in examples
I2C bus node names are expected to be just "i2c", if there is just one such node in given example. Replace remaining bad examples with scripted: git grep -l '\si2c[0-9] {' Documentation/devicetree/ | xargs sed -i -e 's/i2c[0-9] {/i2c {/' Suggested-by: Rob Herring <robh@kernel.org> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://patch.msgid.link/20260114081322.53411-2-krzysztof.kozlowski@oss.qualcomm.com Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
1 parent d897a50 commit aa13528

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Documentation/devicetree/bindings/embedded-controller/lenovo,yoga-c630-ec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ additionalProperties: false
5050
examples:
5151
- |+
5252
#include <dt-bindings/interrupt-controller/irq.h>
53-
i2c1 {
53+
i2c {
5454
clock-frequency = <400000>;
5555
5656
#address-cells = <1>;

Documentation/devicetree/bindings/media/i2c/onnn,mt9m114.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ examples:
9595
#include <dt-bindings/gpio/gpio.h>
9696
#include <dt-bindings/media/video-interfaces.h>
9797
98-
i2c0 {
98+
i2c {
9999
#address-cells = <1>;
100100
#size-cells = <0>;
101101

Documentation/devicetree/bindings/usb/ite,it5205.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ additionalProperties: false
4949
examples:
5050
- |
5151
#include <dt-bindings/interrupt-controller/irq.h>
52-
i2c2 {
52+
i2c {
5353
#address-cells = <1>;
5454
#size-cells = <0>;
5555

0 commit comments

Comments
 (0)