Re: [PATCH] dt-bindings: Fix SPI and I2C bus node names in examples

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Rob Herring <robh@xxxxxxxxxx>
Date: Tue, Feb 28, 2023 at 10:54 PM
Subject: [PATCH] dt-bindings: Fix SPI and I2C bus node names in examples
To: Krzysztof Kozlowski <krzysztof.kozlowski+dt@xxxxxxxxxx>
Cc: <devicetree@xxxxxxxxxxxxxxx>, Miguel Ojeda <ojeda@xxxxxxxxxx>,
Benson Leung <bleung@xxxxxxxxxxxx>, Guenter Roeck
<groeck@xxxxxxxxxxxx>, Stephen Boyd <sboyd@xxxxxxxxxx>, Andrzej Hajda
<andrzej.hajda@xxxxxxxxx>, Neil Armstrong <neil.armstrong@xxxxxxxxxx>,
Robert Foss <rfoss@xxxxxxxxxx>, Thierry Reding
<thierry.reding@xxxxxxxxx>, Sam Ravnborg <sam@xxxxxxxxxxxx>, MyungJoo
Ham <myungjoo.ham@xxxxxxxxxxx>, Chanwoo Choi <cw00.choi@xxxxxxxxxxx>,
Linus Walleij <linus.walleij@xxxxxxxxxx>, Bartosz Golaszewski
<brgl@xxxxxxxx>, Pavel Machek <pavel@xxxxxx>, Lee Jones
<lee@xxxxxxxxxx>, Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>, David S.
Miller <davem@xxxxxxxxxxxxx>, Eric Dumazet <edumazet@xxxxxxxxxx>,
Jakub Kicinski <kuba@xxxxxxxxxx>, Paolo Abeni <pabeni@xxxxxxxxxx>,
Wolfgang Grandegger <wg@xxxxxxxxxxxxxx>, Kalle Valo
<kvalo@xxxxxxxxxx>, Sebastian Reichel <sre@xxxxxxxxxx>, Mark Brown
<broonie@xxxxxxxxxx>, Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>,
<linux-clk@xxxxxxxxxxxxxxx>, <dri-devel@xxxxxxxxxxxxxxxxxxxxx>,
<linux-gpio@xxxxxxxxxxxxxxx>, <linux-i2c@xxxxxxxxxxxxxxx>,
<linux-leds@xxxxxxxxxxxxxxx>, <linux-media@xxxxxxxxxxxxxxx>,
<netdev@xxxxxxxxxxxxxxx>, <linux-can@xxxxxxxxxxxxxxx>,
<linux-wireless@xxxxxxxxxxxxxxx>, <linux-pm@xxxxxxxxxxxxxxx>,
<alsa-devel@xxxxxxxxxxxxxxxx>, <linux-usb@xxxxxxxxxxxxxxx>


SPI and I2C bus node names are expected to be "spi" or "i2c",
respectively, with nothing else, a unit-address, or a '-N' index. A
pattern of 'spi0' or 'i2c0' or similar has crept in. Fix all these
cases. Mostly scripted with the following commands:

git grep -l '\si2c[0-9] {' Documentation/devicetree/ | xargs sed -i -e
's/i2c[0-9] {/i2c {/'
git grep -l '\sspi[0-9] {' Documentation/devicetree/ | xargs sed -i -e
's/spi[0-9] {/spi {/'

With this, a few errors in examples were exposed and fixed.

Signed-off-by: Rob Herring <robh@xxxxxxxxxx>
---
Cc: Miguel Ojeda <ojeda@xxxxxxxxxx>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski+dt@xxxxxxxxxx>
Cc: Benson Leung <bleung@xxxxxxxxxxxx>
Cc: Guenter Roeck <groeck@xxxxxxxxxxxx>
Cc: Stephen Boyd <sboyd@xxxxxxxxxx>
Cc: Andrzej Hajda <andrzej.hajda@xxxxxxxxx>
Cc: Neil Armstrong <neil.armstrong@xxxxxxxxxx>
Cc: Robert Foss <rfoss@xxxxxxxxxx>
Cc: Thierry Reding <thierry.reding@xxxxxxxxx>
Cc: Sam Ravnborg <sam@xxxxxxxxxxxx>
Cc: MyungJoo Ham <myungjoo.ham@xxxxxxxxxxx>
Cc: Chanwoo Choi <cw00.choi@xxxxxxxxxxx>
Cc: Linus Walleij <linus.walleij@xxxxxxxxxx>
Cc: Bartosz Golaszewski <brgl@xxxxxxxx>
Cc: Pavel Machek <pavel@xxxxxx>
Cc: Lee Jones <lee@xxxxxxxxxx>
Cc: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>
Cc: "David S. Miller" <davem@xxxxxxxxxxxxx>
Cc: Eric Dumazet <edumazet@xxxxxxxxxx>
Cc: Jakub Kicinski <kuba@xxxxxxxxxx>
Cc: Paolo Abeni <pabeni@xxxxxxxxxx>
Cc: Wolfgang Grandegger <wg@xxxxxxxxxxxxxx>
Cc: Kalle Valo <kvalo@xxxxxxxxxx>
Cc: Sebastian Reichel <sre@xxxxxxxxxx>
Cc: Mark Brown <broonie@xxxxxxxxxx>
Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
Cc: linux-clk@xxxxxxxxxxxxxxx
Cc: dri-devel@xxxxxxxxxxxxxxxxxxxxx
Cc: linux-gpio@xxxxxxxxxxxxxxx
Cc: linux-i2c@xxxxxxxxxxxxxxx
Cc: linux-leds@xxxxxxxxxxxxxxx
Cc: linux-media@xxxxxxxxxxxxxxx
Cc: netdev@xxxxxxxxxxxxxxx
Cc: linux-can@xxxxxxxxxxxxxxx
Cc: linux-wireless@xxxxxxxxxxxxxxx
Cc: linux-pm@xxxxxxxxxxxxxxx
Cc: alsa-devel@xxxxxxxxxxxxxxxx
Cc: linux-usb@xxxxxxxxxxxxxxx
---
 .../bindings/auxdisplay/holtek,ht16k33.yaml       |  2 +-

....

 86 files changed, 110 insertions(+), 103 deletions(-)

diff --git a/Documentation/devicetree/bindings/auxdisplay/holtek,ht16k33.yaml
b/Documentation/devicetree/bindings/auxdisplay/holtek,ht16k33.yaml
index fc4873deb76f..286e726cd052 100644
--- a/Documentation/devicetree/bindings/auxdisplay/holtek,ht16k33.yaml
+++ b/Documentation/devicetree/bindings/auxdisplay/holtek,ht16k33.yaml
@@ -72,7 +72,7 @@ examples:
     #include <dt-bindings/interrupt-controller/irq.h>
     #include <dt-bindings/input/input.h>
     #include <dt-bindings/leds/common.h>
-    i2c1 {
+    i2c {
             #address-cells = <1>;
             #size-cells = <0>;

Acked-by: Robin van der Gracht <robin@xxxxxxxxxxx>



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux