diff mbox series

dt-bindings: iio: ad7192: Fix DTC error in reg schema

Message ID 20191212134037.1049-1-benjamin.gaignard@st.com (mailing list archive)
State New, archived
Headers show
Series dt-bindings: iio: ad7192: Fix DTC error in reg schema | expand

Commit Message

Benjamin GAIGNARD Dec. 12, 2019, 1:40 p.m. UTC
Add minimum field to be compliant to json-schema

Fixes: d898f9ac542f9 ("dt-bindings: iio: adc: Add dt-schema for AD7292")
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
---
 Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml | 1 +
 1 file changed, 1 insertion(+)

Comments

Rob Herring Dec. 12, 2019, 2:06 p.m. UTC | #1
On Thu, Dec 12, 2019 at 7:40 AM Benjamin Gaignard
<benjamin.gaignard@st.com> wrote:
>
> Add minimum field to be compliant to json-schema
>
> Fixes: d898f9ac542f9 ("dt-bindings: iio: adc: Add dt-schema for AD7292")
> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
> ---
>  Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml | 1 +
>  1 file changed, 1 insertion(+)

Thanks, but there's already a fix pending in -next.

Rob
Marcelo Schmitt Dec. 20, 2019, 2:01 p.m. UTC | #2
On 12/12, Benjamin Gaignard wrote:
> Add minimum field to be compliant to json-schema
> 
> Fixes: d898f9ac542f9 ("dt-bindings: iio: adc: Add dt-schema for AD7292")
> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
> ---
>  Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml
> index b68be3aaf587..d804a8a78bea 100644
> --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml
> +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml
> @@ -53,6 +53,7 @@ patternProperties:
>          description: |
>            The channel number. It can have up to 8 channels numbered from 0 to 7.
>          items:
> +          minimum: 0
>            maximum: 7
>  
>        diff-channels:
> -- 
> 2.15.0
> 

Hi Benjamin,

Sorry for the late reply.

This issue has already been tackled down. I think it should be in
mainline now.
Anyway, thanks for your contribution. Nice holiday and a happy new year.


Thanks,

Marcelo
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..d804a8a78bea 100644
--- a/Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml
@@ -53,6 +53,7 @@  patternProperties:
         description: |
           The channel number. It can have up to 8 channels numbered from 0 to 7.
         items:
+          minimum: 0
           maximum: 7
 
       diff-channels: