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

0 views
Skip to first unread message

Marcelo Schmitt

unread,
Nov 16, 2019, 3:51:18 PM11/16/19
to ji...@kernel.org, ro...@kernel.org, dragos...@analog.com, alexandru...@analog.com, linux-...@vger.kernel.org, linu...@vger.kernel.org, devic...@vger.kernel.org, kerne...@googlegroups.com
Change items property of AD7292 channels to correctly constrain their
quantity.

Signed-off-by: Marcelo Schmitt <marcelo....@gmail.com>
---
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

Rob Herring

unread,
Nov 22, 2019, 11:06:37 AM11/22/19
to Marcelo Schmitt, Jonathan Cameron, Dragos Bogdan, Alexandru Ardelean, linux-...@vger.kernel.org, open list:IIO SUBSYSTEM AND DRIVERS, devic...@vger.kernel.org, kerne...@googlegroups.com
On Sat, Nov 16, 2019 at 2:51 PM Marcelo Schmitt
<marcelo....@gmail.com> wrote:
>
> Change items property of AD7292 channels to correctly constrain their
> quantity.
>
> Signed-off-by: Marcelo Schmitt <marcelo....@gmail.com>
> ---
> Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)

Reviewed-by: Rob Herring <ro...@kernel.org>

Jonathan Cameron

unread,
Nov 23, 2019, 7:27:22 AM11/23/19
to Rob Herring, Marcelo Schmitt, Dragos Bogdan, Alexandru Ardelean, linux-...@vger.kernel.org, open list:IIO SUBSYSTEM AND DRIVERS, devic...@vger.kernel.org, kerne...@googlegroups.com
Applied to the fixes-togreg branch of iio.git.

Thanks,

Jonathan
Reply all
Reply to author
Forward
0 new messages