Skip to contentSkip to conversation

dt-bindings: iio: adc: adi,ad7292: Fix additionalProperties on channel nodes

PATCH Applied Rob Herring 4 participants 4 messages Sep 26, 2023 – Sep 30, 2023

Subsystems (4)
lore
Share & tools
lore

Rob Herring

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: iio: adc: adi,ad7292: Fix additionalProperties on channel nodes

"additionalProperties: true" is only for incomplete schemas such as bus child nodes in a bus's schema. That doesn't apply to the "channel" nodes in the adi,ad7292 binding, so fix additionalProperties to be false.

---
 Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml +1 -1
index 7cc4ddc4e9b7..2aa1f4b063eb 100644
@@ -61,7 +61,7 @@ patternProperties:
     required:
       - reg
 
-    additionalProperties: true
+    additionalProperties: false
 
 allOf:
   - $ref: /schemas/spi/spi-peripheral-props.yaml#
Signature · 1 line
2.40.1
maintainer Applied
#3 lore raw
In reply to Rob Herring
Quoted 5 lines · On Tue, 26 Sep 2023 11:43:50 -0500 Rob Herring <[email protected]> wrote:

"additionalProperties: true" is only for incomplete schemas such as bus child nodes in a bus's schema. That doesn't apply to the "channel" nodes in the adi,ad7292 binding, so fix additionalProperties to be false.

Oops.

Applied to the fixes-togreg branch of iio.git

Thanks,

Jonathan

Quoted 17 lines
---
 Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml +1 -1
index 7cc4ddc4e9b7..2aa1f4b063eb 100644
@@ -61,7 +61,7 @@ patternProperties:
     required:
       - reg
 
-    additionalProperties: true
+    additionalProperties: false
 
 allOf:
   - $ref: /schemas/spi/spi-peripheral-props.yaml#