[1/2] dt-bindings: extcon: maxim,max77843: restrict connector properties

Message ID 20230720080141.56329-1-krzysztof.kozlowski@linaro.org
State New
Headers
Series [1/2] dt-bindings: extcon: maxim,max77843: restrict connector properties |

Commit Message

Krzysztof Kozlowski July 20, 2023, 8:01 a.m. UTC
  Do not allow any other properties in connector child, except what
usb-connector.yaml evaluates.

Fixes: 9729cad0278b ("dt-bindings: extcon: maxim,max77843: Add MAX77843 bindings")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 Documentation/devicetree/bindings/extcon/maxim,max77843.yaml | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Chanwoo Choi July 23, 2023, 8:14 p.m. UTC | #1
On 23. 7. 20. 17:01, Krzysztof Kozlowski wrote:
> Do not allow any other properties in connector child, except what
> usb-connector.yaml evaluates.
> 
> Fixes: 9729cad0278b ("dt-bindings: extcon: maxim,max77843: Add MAX77843 bindings")
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  Documentation/devicetree/bindings/extcon/maxim,max77843.yaml | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/devicetree/bindings/extcon/maxim,max77843.yaml b/Documentation/devicetree/bindings/extcon/maxim,max77843.yaml
> index 128960545640..55800fb0221d 100644
> --- a/Documentation/devicetree/bindings/extcon/maxim,max77843.yaml
> +++ b/Documentation/devicetree/bindings/extcon/maxim,max77843.yaml
> @@ -23,6 +23,7 @@ properties:
>  
>    connector:
>      $ref: /schemas/connector/usb-connector.yaml#
> +    unevaluatedProperties: false
>  
>    ports:
>      $ref: /schemas/graph.yaml#/properties/ports

Applied it. Thanks.
  

Patch

diff --git a/Documentation/devicetree/bindings/extcon/maxim,max77843.yaml b/Documentation/devicetree/bindings/extcon/maxim,max77843.yaml
index 128960545640..55800fb0221d 100644
--- a/Documentation/devicetree/bindings/extcon/maxim,max77843.yaml
+++ b/Documentation/devicetree/bindings/extcon/maxim,max77843.yaml
@@ -23,6 +23,7 @@  properties:
 
   connector:
     $ref: /schemas/connector/usb-connector.yaml#
+    unevaluatedProperties: false
 
   ports:
     $ref: /schemas/graph.yaml#/properties/ports