Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1689030 > unrolled thread

[PATCH] dt-bindings: regulator: pwm-regulator: fix example syntax

Started byMartin Blumenstingl <martin.blumenstingl@googlemail.com>
First post2017-07-17 15:20 +0200
Last post2017-07-17 22:20 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] dt-bindings: regulator: pwm-regulator: fix example syntax Martin Blumenstingl <martin.blumenstingl@googlemail.com> - 2017-07-17 15:20 +0200
    Re: [PATCH] dt-bindings: regulator: pwm-regulator: fix example syntax Rob Herring <robh@kernel.org> - 2017-07-17 22:20 +0200

#1689030 — [PATCH] dt-bindings: regulator: pwm-regulator: fix example syntax

FromMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Date2017-07-17 15:20 +0200
Subject[PATCH] dt-bindings: regulator: pwm-regulator: fix example syntax
Message-ID<u4e6m-5An-21@gated-at.bofh.it>
The "Continuous Voltage" example specifies a pwm-dutycycle-range.
However, an equal sign is missing between the property name and value.
Fix this to allow copy and paste from the documentation when writing an
own .dts file with a pwm-regulator.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
 Documentation/devicetree/bindings/regulator/pwm-regulator.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/regulator/pwm-regulator.txt b/Documentation/devicetree/bindings/regulator/pwm-regulator.txt
index bf85aa9ad6a7..3d78d507e29f 100644
--- a/Documentation/devicetree/bindings/regulator/pwm-regulator.txt
+++ b/Documentation/devicetree/bindings/regulator/pwm-regulator.txt
@@ -71,7 +71,7 @@ Continuous Voltage With Enable GPIO Example:
 		 * Inverted PWM logic, and the duty cycle range is limited
 		 * to 30%-70%.
 		 */
-		pwm-dutycycle-range <700 300>; /* */
+		pwm-dutycycle-range = <700 300>; /* */
 	};
 
 Voltage Table Example:
-- 
2.13.3

[toc] | [next] | [standalone]


#1689432

FromRob Herring <robh@kernel.org>
Date2017-07-17 22:20 +0200
Message-ID<u4kEN-1f3-1@gated-at.bofh.it>
In reply to#1689030
On Mon, Jul 17, 2017 at 03:18:23PM +0200, Martin Blumenstingl wrote:
> The "Continuous Voltage" example specifies a pwm-dutycycle-range.
> However, an equal sign is missing between the property name and value.
> Fix this to allow copy and paste from the documentation when writing an
> own .dts file with a pwm-regulator.
> 
> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
> ---
>  Documentation/devicetree/bindings/regulator/pwm-regulator.txt | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/regulator/pwm-regulator.txt b/Documentation/devicetree/bindings/regulator/pwm-regulator.txt
> index bf85aa9ad6a7..3d78d507e29f 100644
> --- a/Documentation/devicetree/bindings/regulator/pwm-regulator.txt
> +++ b/Documentation/devicetree/bindings/regulator/pwm-regulator.txt
> @@ -71,7 +71,7 @@ Continuous Voltage With Enable GPIO Example:
>  		 * Inverted PWM logic, and the duty cycle range is limited
>  		 * to 30%-70%.
>  		 */
> -		pwm-dutycycle-range <700 300>; /* */
> +		pwm-dutycycle-range = <700 300>; /* */

What's the point of "/* */" while you're here?

In any case,

Acked-by: Rob Herring <robh@kernel.org>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web