Skip to contentSkip to conversation

gpio: of: make example syntactically correct

PATCH RESEND In review Wolfram Sang 3 participants 3 messages Jan 21, 2018 – Sep 10, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND v2 1/1 gpio: of: make example syntactically correct

The ';' was missing. And cosmetic: there was a space too much.

---

No changes since V2, only Niklas' tag added.

Changes since V1:
* removed extra spaces (Thanks Sergei!)

 Documentation/devicetree/bindings/gpio/gpio.txt | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
Documentation/devicetree/bindings/gpio/gpio.txt +4 -4
index b5de08e3b1a2f1..91d33f75dd0e4d 100644
@@ -33,12 +33,12 @@ The following example could be used to describe GPIO pins used as device enable
 and bit-banged data signals:
 
 	gpio1: gpio1 {
-		gpio-controller
-		 #gpio-cells = <2>;
+		gpio-controller;
+		#gpio-cells = <2>;
 	};
 	gpio2: gpio2 {
-		gpio-controller
-		 #gpio-cells = <1>;
+		gpio-controller;
+		#gpio-cells = <1>;
 	};
 	[...]
 
Signature · 1 line
2.11.0
Reviewed-by on v2 1/1
#1 lore raw

CC LinusW

Quoted 5 lines · Wolfram Sang

The ';' was missing. And cosmetic: there was a space too much.

Quoted 21 lines

---

No changes since V2, only Niklas' tag added.

Changes since V1:
* removed extra spaces (Thanks Sergei!)

 Documentation/devicetree/bindings/gpio/gpio.txt | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
Documentation/devicetree/bindings/gpio/gpio.txt +0 -2
index b5de08e3b1a2f1..91d33f75dd0e4d 100644
@@ -33,12 +33,12 @@ The following example could be used to describe GPIO pins used as device enable
 and bit-banged data signals:
 
        gpio1: gpio1 {
-               gpio-controller
-                #gpio-cells = <2>;

Documentation/devicetree/bindings/gpio/gpio.txt The following example could be used to describe GPIO pins used as device enable · line 42

Quoted 10 lines
Documentation/devicetree/bindings/gpio/gpio.txt +4 -2
+               gpio-controller;
+               #gpio-cells = <2>;
        };
        gpio2: gpio2 {
-               gpio-controller
-                #gpio-cells = <1>;
+               gpio-controller;
+               #gpio-cells = <1>;
        };
[...]

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds