Skip to contentSkip to conversation

dt-bindings: iio: adc: ad7292: fix channel constraint

PATCH In review Marcelo Schmitt 2 participants 3 messages Dec 4, 2019

Subsystems (4)
lore
Share & tools
lore

Marcelo Schmitt

author maintainer
#0 lore raw

PATCH v2 1/2 dt-bindings: iio: adc: ad7292: fix channel constraint

Change items property of AD7292 channels to correctly constrain their quantity.

---
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(-)
Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml +2 -1
index b68be3aaf587..18f1032b86f3 100644
@@ -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
Signature · 1 line
2.23.0
maintainer
#1 lore raw
Quoted 10 lines · Marcelo Schmitt

Change items property of AD7292 channels to correctly constrain their quantity.

---
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.

Quoted 18 lines
Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml +2 -1
index b68be3aaf587..18f1032b86f3 100644
@@ -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
Signature · 1 line
2.23.0
author maintainer
#2 lore raw

I see now that I had misunderstood part of the last thread. Sorry for the unnecessary spamming. Please, ignore this V2 series.

Quoted 32 lines · Rob Herring
Quoted 10 lines · Marcelo Schmitt

Change items property of AD7292 channels to correctly constrain their quantity.

---
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.

Quoted 18 lines
Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml +2 -1
index b68be3aaf587..18f1032b86f3 100644
@@ -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
Signature · 1 line
2.23.0