Skip to contentSkip to conversation

regulator: gpio-regulator: doc: Fix wrong key gpio-enable

PATCH New Frank Li 2 participants 2 messages Nov 12, 2012 – Nov 13, 2012

Subsystems (2)
lore
Share & tools
lore

Frank Li

author
#0 lore raw

PATCH 1/2 regulator: gpio-regulator: doc: Fix wrong key gpio-enable

Wrong description in binding document.
Doc use "gpio-enable", but code use "enable-gpio"

In drivers/regulator/gpio-regulator.c

	config->enable_gpio = of_get_named_gpio(np, "enable-gpio", 0);
---
 .../bindings/regulator/gpio-regulator.txt          |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/regulator/gpio-regulator.txt +2 -2
index 3703be2..f71f808 100644
@@ -4,7 +4,7 @@ Required properties:
 - compatible		: Must be "regulator-gpio".
 
 Optional properties:
-- gpio-enable		: GPIO to use to enable/disable the regulator.
+- enable-gpio		: GPIO to use to enable/disable the regulator.
 - gpios			: GPIO group used to control voltage.
 - states		: Selection of available voltages and GPIO configs.
 - startup-delay-us	: Startup time in microseconds.
@@ -23,7 +23,7 @@ Example:
 		regulator-max-microvolt = <2600000>;
 		regulator-boot-on;
 
-		gpio-enable = <&gpio0 23 0x4>;
+		enable-gpio = <&gpio0 23 0x4>;
 		gpios = <&gpio0 24 0x4
 			 &gpio0 25 0x4>;
 		states = <1800000 0x3
Signature · 1 line
1.7.1
#1 lore raw

PATCH 1/2 regulator: gpio-regulator: doc: Fix wrong key gpio-enable

Quoted 2 lines · Frank Li

Wrong description in binding document.
Doc use "gpio-enable", but code use "enable-gpio"

Applied, thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20121113/4d8c564d/attachment.sig>