Skip to content

Commit 6dc5526

Browse files
committed
dt-bindings: iio: adc: ad7192: Fix 'single-channel' constraints
The 'single-channel' property is an uint32, not an array, so 'items' is an incorrect constraint. This didn't matter until dtschema recently changed how properties are decoded. This results in this warning: Documentation/devicetree/bindings/iio/adc/adi,ad7192.example.dtb: adc@0: \ channel@1:single-channel: 1 is not of type 'array' Fixes: caf7b76 ("dt-bindings: iio: adc: ad7192: Add AD7194 support") Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20240723230904.1299744-1-robh@kernel.org Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
1 parent 9722c3b commit 6dc5526

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,8 @@ patternProperties:
120120
description:
121121
Positive input can be connected to pins AIN1 to AIN16 by choosing the
122122
appropriate value from 1 to 16. Negative input is connected to AINCOM.
123-
items:
124-
minimum: 1
125-
maximum: 16
123+
minimum: 1
124+
maximum: 16
126125

127126
oneOf:
128127
- required:

0 commit comments

Comments
 (0)