2019-11-16 20:55:20

by Marcelo Schmitt

[permalink] [raw]
Subject: [PATCH 2/2] dt-bindings: iio: adc: ad7292: fix constraint over channel quantity

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

Signed-off-by: Marcelo Schmitt <[email protected]>
---
Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml
index 5770f63dd511..e1f6d64bdccd 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


2019-11-22 16:08:38

by Rob Herring

[permalink] [raw]
Subject: Re: [PATCH 2/2] dt-bindings: iio: adc: ad7292: fix constraint over channel quantity

On Sat, Nov 16, 2019 at 2:51 PM Marcelo Schmitt
<[email protected]> wrote:
>
> Change items property of AD7292 channels to correctly constrain their
> quantity.
>
> Signed-off-by: Marcelo Schmitt <[email protected]>
> ---
> Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)

Reviewed-by: Rob Herring <[email protected]>

2019-11-23 12:31:16

by Jonathan Cameron

[permalink] [raw]
Subject: Re: [PATCH 2/2] dt-bindings: iio: adc: ad7292: fix constraint over channel quantity

On Fri, 22 Nov 2019 10:06:23 -0600
Rob Herring <[email protected]> wrote:

> On Sat, Nov 16, 2019 at 2:51 PM Marcelo Schmitt
> <[email protected]> wrote:
> >
> > Change items property of AD7292 channels to correctly constrain their
> > quantity.
> >
> > Signed-off-by: Marcelo Schmitt <[email protected]>
> > ---
> > Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
>
> Reviewed-by: Rob Herring <[email protected]>


Applied to the fixes-togreg branch of iio.git.

Thanks,

Jonathan