]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dt-bindings: Fix I2C bus node names in examples
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Wed, 14 Jan 2026 08:13:23 +0000 (09:13 +0100)
committerRob Herring (Arm) <robh@kernel.org>
Wed, 4 Feb 2026 02:58:11 +0000 (20:58 -0600)
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>
Documentation/devicetree/bindings/embedded-controller/lenovo,yoga-c630-ec.yaml
Documentation/devicetree/bindings/media/i2c/onnn,mt9m114.yaml
Documentation/devicetree/bindings/usb/ite,it5205.yaml

index a029b38e8dc0b1206c20d19458db83ad8f2f49c7..c88fbd6ad9408f9f13786a8264b708607f4cfce5 100644 (file)
@@ -50,7 +50,7 @@ additionalProperties: false
 examples:
   - |+
     #include <dt-bindings/interrupt-controller/irq.h>
-    i2c1 {
+    i2c {
         clock-frequency = <400000>;
 
         #address-cells = <1>;
index a89f740214f7503181737781c9bc254bedc12d1c..dffd23ca4839c0fd52c66e40574d79e346de016c 100644 (file)
@@ -95,7 +95,7 @@ examples:
     #include <dt-bindings/gpio/gpio.h>
     #include <dt-bindings/media/video-interfaces.h>
 
-    i2c0 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
index 889710733de517695ce831a2ac5784f57f1b991f..045fcb41ac4bbeb2c11239db87d1a13fbfc5b84d 100644 (file)
@@ -49,7 +49,7 @@ additionalProperties: false
 examples:
   - |
     #include <dt-bindings/interrupt-controller/irq.h>
-    i2c2 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;