diff mbox series

[v2,1/2] dt-bindings: iio: adc: ad7292: fix channel constraint

Message ID 20191204155918.5ot4tplceqjeul6a@smtp.gmail.com (mailing list archive)
State New, archived
Headers show
Series [v2,1/2] dt-bindings: iio: adc: ad7292: fix channel constraint | expand

Commit Message

Marcelo Schmitt Dec. 4, 2019, 3:59 p.m. UTC
Change items property of AD7292 channels to correctly constrain their
quantity.

Signed-off-by: Marcelo Schmitt <marcelo.schmitt1@gmail.com>
---
Changelog V2
- Shortened the message to make it closer to 50 columns.

 Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Rob Herring Dec. 4, 2019, 6:57 p.m. UTC | #1
On Wed, Dec 04, 2019 at 12:59:23PM -0300, Marcelo Schmitt wrote:
> Change items property of AD7292 channels to correctly constrain their
> quantity.
> 
> Signed-off-by: Marcelo Schmitt <marcelo.schmitt1@gmail.com>
> ---
> Changelog V2
> - Shortened the message to make it closer to 50 columns.
> 
>  Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

I think Jonathan already applied this series.

> 
> diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml
> index b68be3aaf587..18f1032b86f3 100644
> --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml
> +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml
> @@ -53,7 +53,8 @@ patternProperties:
>          description: |
>            The channel number. It can have up to 8 channels numbered from 0 to 7.
>          items:
> -          maximum: 7
> +          - minimum: 0
> +            maximum: 7
>  
>        diff-channels:
>          description: see Documentation/devicetree/bindings/iio/adc/adc.txt
> -- 
> 2.23.0
>
Marcelo Schmitt Dec. 4, 2019, 9:59 p.m. UTC | #2
I see now that I had misunderstood part of the last thread.
Sorry for the unnecessary spamming. Please, ignore this V2 series.

On 12/04, Rob Herring wrote:
> On Wed, Dec 04, 2019 at 12:59:23PM -0300, Marcelo Schmitt wrote:
> > Change items property of AD7292 channels to correctly constrain their
> > quantity.
> > 
> > Signed-off-by: Marcelo Schmitt <marcelo.schmitt1@gmail.com>
> > ---
> > Changelog V2
> > - Shortened the message to make it closer to 50 columns.
> > 
> >  Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> I think Jonathan already applied this series.
> 
> > 
> > diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml
> > index b68be3aaf587..18f1032b86f3 100644
> > --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml
> > +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml
> > @@ -53,7 +53,8 @@ patternProperties:
> >          description: |
> >            The channel number. It can have up to 8 channels numbered from 0 to 7.
> >          items:
> > -          maximum: 7
> > +          - minimum: 0
> > +            maximum: 7
> >  
> >        diff-channels:
> >          description: see Documentation/devicetree/bindings/iio/adc/adc.txt
> > -- 
> > 2.23.0
> >
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml
index b68be3aaf587..18f1032b86f3 100644
--- a/Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml
@@ -53,7 +53,8 @@  patternProperties:
         description: |
           The channel number. It can have up to 8 channels numbered from 0 to 7.
         items:
-          maximum: 7
+          - minimum: 0
+            maximum: 7
 
       diff-channels:
         description: see Documentation/devicetree/bindings/iio/adc/adc.txt