Skip to contentSkip to conversation

gpio: board.txt: Fix the gpio name example

PATCH In review Fabio Estevam 3 participants 3 messages Jan 27, 2015 – Jan 28, 2015

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

PATCH 1/1 gpio: board.txt: Fix the gpio name example

From: Fabio Estevam <[email protected]>

As explained in this file:

"GPIOs mappings are defined in the consumer device's node, in a property named <function>-gpios"

So fix the example to match the convention.

---
 Documentation/gpio/board.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/gpio/board.txt +1 -1
index 4452786..8b35f51 100644
@@ -31,7 +31,7 @@ through gpiod_get(). For example:
 			    <&gpio 16 GPIO_ACTIVE_HIGH>, /* green */
 			    <&gpio 17 GPIO_ACTIVE_HIGH>; /* blue */
 
-		power-gpio = <&gpio 1 GPIO_ACTIVE_LOW>;
+		power-gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
 	};
 
 This property will make GPIOs 15, 16 and 17 available to the driver under the
Signature · 1 line
1.9.1
maintainer
#2 lore raw
In reply to Fabio Estevam
Quoted 6 lines · On Mon, 26 Jan 2015 22:30:39 -0200 Fabio Estevam <[email protected]> wrote:

As explained in this file:

"GPIOs mappings are defined in the consumer device's node, in a property named <function>-gpios"

So fix the example to match the convention.

OK, I've applied this to the docs tree, thanks.

jon