diff mbox series

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

Message ID 20230926164357.100325-1-robh@kernel.org (mailing list archive)
State Accepted
Headers show
Series dt-bindings: iio: adc: adi,ad7292: Fix additionalProperties on channel nodes | expand

Commit Message

Rob Herring (Arm) Sept. 26, 2023, 4:43 p.m. UTC
"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.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Marcelo Schmitt Sept. 27, 2023, 1:47 a.m. UTC | #1
On 09/26, Rob Herring 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.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>

Acked-by: Marcelo Schmitt <marcelo.schmitt1@gmail.com>

Thanks,
Marcelo
Conor Dooley Sept. 27, 2023, 3:14 p.m. UTC | #2
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Jonathan Cameron Sept. 30, 2023, 4:46 p.m. UTC | #3
On Tue, 26 Sep 2023 11:43:50 -0500
Rob Herring <robh@kernel.org> 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.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>
Oops.

Applied to the fixes-togreg branch of iio.git

Thanks,

Jonathan

> ---
>  Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml
> index 7cc4ddc4e9b7..2aa1f4b063eb 100644
> --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml
> +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml
> @@ -61,7 +61,7 @@ patternProperties:
>      required:
>        - reg
>  
> -    additionalProperties: true
> +    additionalProperties: false
>  
>  allOf:
>    - $ref: /schemas/spi/spi-peripheral-props.yaml#
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 7cc4ddc4e9b7..2aa1f4b063eb 100644
--- a/Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml
@@ -61,7 +61,7 @@  patternProperties:
     required:
       - reg
 
-    additionalProperties: true
+    additionalProperties: false
 
 allOf:
   - $ref: /schemas/spi/spi-peripheral-props.yaml#